Update by a few dozen patch releases (3.308 -> 3.397). Install two report Perl scripts, example files, and more docs.diff -r1.41 -r1.42 pkgsrc/benchmarks/iozone/Makefile
(hauke)
@@ -1,68 +1,84 @@ | @@ -1,68 +1,84 @@ | |||
1 | # $NetBSD: Makefile,v 1.41 2010/12/30 07:41:27 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.42 2011/12/02 15:31:44 hauke Exp $ | |
2 | 2 | |||
3 | DISTNAME= iozone3_308 | 3 | DISTNAME= iozone3_397 | |
4 | PKGNAME= iozone-3.308 | 4 | PKGNAME= iozone-3.397 | |
5 | CATEGORIES= benchmarks | 5 | CATEGORIES= benchmarks | |
6 | MASTER_SITES= http://www.iozone.org/src/current/ | 6 | MASTER_SITES= http://www.iozone.org/src/current/ | |
7 | EXTRACT_SUFX= .tar | 7 | EXTRACT_SUFX= .tar | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.iozone.org/ | 10 | HOMEPAGE= http://www.iozone.org/ | |
11 | COMMENT= Benchmark for file read and write speed | 11 | COMMENT= Benchmark for file read and write speed | |
12 | # No derivative works | 12 | # No derivative works | |
13 | LICENSE= iozone-license | 13 | LICENSE= iozone-license | |
14 | 14 | |||
15 | NOT_FOR_PLATFORM= Interix-*-* # has only 32-bit off_t | 15 | NOT_FOR_PLATFORM= Interix-*-* # has only 32-bit off_t | |
16 | 16 | |||
17 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 17 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
18 | PKG_DESTDIR_SUPPORT= user-destdir | 18 | PKG_DESTDIR_SUPPORT= user-destdir | |
19 | 19 | |||
20 | WRKSRC= ${WRKDIR}/${DISTNAME}/src/current | 20 | WRKSRC= ${WRKDIR}/${DISTNAME}/src/current | |
21 | MAKE_FILE= makefile | 21 | MAKE_FILE= makefile | |
22 | USE_TOOLS+= tee | 22 | USE_TOOLS+= tee perl | |
23 | 23 | |||
24 | .include "../../mk/bsd.prefs.mk" | 24 | .include "../../mk/bsd.prefs.mk" | |
25 | 25 | |||
26 | .if !empty(OPSYS:M*BSD) || ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly" | 26 | .if !empty(OPSYS:M*BSD) || ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly" | |
27 | BUILD_TARGET= ${LOWER_OPSYS} | 27 | BUILD_TARGET= ${LOWER_OPSYS} | |
28 | .elif (${OPSYS} == "SunOS") | 28 | .elif (${OPSYS} == "SunOS") | |
29 | BUILD_TARGET= Solaris | 29 | BUILD_TARGET= Solaris | |
30 | .elif (${OPSYS} == "Darwin") | 30 | .elif (${OPSYS} == "Darwin") | |
31 | BUILD_TARGET= macosx | 31 | BUILD_TARGET= macosx | |
32 | .elif (${OPSYS} == "IRIX") | 32 | .elif (${OPSYS} == "IRIX") | |
33 | BUILD_TARGET= ${OPSYS}${ABI:M64} | 33 | BUILD_TARGET= ${OPSYS}${ABI:M64} | |
34 | .elif (${OPSYS} == "BSDOS") | 34 | .elif (${OPSYS} == "BSDOS") | |
35 | BUILD_TARGET= bsdi | 35 | BUILD_TARGET= bsdi | |
36 | .elif (${OPSYS} == "AIX") | 36 | .elif (${OPSYS} == "AIX") | |
37 | BUILD_TARGET= ${OPSYS} | 37 | BUILD_TARGET= ${OPSYS} | |
38 | .else | 38 | .else | |
39 | # XXX: generic should work, but specific target would be better | 39 | # XXX: generic should work, but specific target would be better | |
40 | BUILD_TARGET= generic | 40 | BUILD_TARGET= generic | |
41 | .endif | 41 | .endif | |
42 | 42 | |||
43 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | 43 | REPLACE_PERL = iozone_visualizer.pl report.pl | |
44 | ||||
45 | EGDIR = share/examples/IOzone | |||
46 | DOCDIR = share/doc/IOzone | |||
47 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} ${DOCDIR} | |||
44 | 48 | |||
45 | .include "options.mk" | 49 | .include "options.mk" | |
46 | 50 | |||
47 | IOZONE_TEST_ARGS= -Ea | 51 | IOZONE_TEST_ARGS= -Ea | |
48 | .if !empty(PKG_OPTIONS:Mthreads) | 52 | .if !empty(PKG_OPTIONS:Mthreads) | |
49 | IOZONE_TEST_ARGS+= -T -t4 | 53 | IOZONE_TEST_ARGS+= -T -t4 | |
50 | .endif | 54 | .endif | |
51 | 55 | |||
52 | do-install: | 56 | do-install: | |
53 | ${INSTALL_PROGRAM} ${WRKSRC}/iozone ${DESTDIR}${PREFIX}/bin | 57 | .for bb in fileop iozone pit_server | |
58 | ${INSTALL_PROGRAM} ${WRKSRC}/${bb} ${DESTDIR}${PREFIX}/bin | |||
59 | .endfor | |||
60 | ${INSTALL_SCRIPT} ${WRKSRC}/iozone_visualizer.pl \ | |||
61 | ${DESTDIR}${PREFIX}/bin/iozone_visualizer | |||
62 | ${INSTALL_SCRIPT} ${WRKSRC}/report.pl \ | |||
63 | ${DESTDIR}${PREFIX}/bin/iozone_report | |||
54 | ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 \ | 64 | ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 \ | |
55 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 65 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
56 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/IOzone | 66 | .for dd in IOzone_msword_98.pdf Iozone_ps.gz Run_rules.doc | |
57 | ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/Iozone_ps.gz \ | 67 | ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/${dd} \ | |
58 | ${DESTDIR}${PREFIX}/share/doc/IOzone | 68 | ${DESTDIR}${PREFIX}/${DOCDIR}/ | |
69 | .endfor | |||
70 | .for ee in Generate_Graphs Gnuplot.txt client_list gengnuplot.sh \ | |||
71 | gnu3d.dem gnuplot.dem gnuplotps.dem read_telemetry write_telemetry | |||
72 | ${INSTALL_DATA} ${WRKSRC}/${ee} \ | |||
73 | ${DESTDIR}${PREFIX}/${EGDIR}/ | |||
74 | .endfor | |||
59 | 75 | |||
60 | benchmark: | 76 | benchmark: | |
61 | cd ${WRKSRC}; ./iozone ${IOZONE_TEST_ARGS} | ${TEE} iozone.out | 77 | cd ${WRKSRC}; ./iozone ${IOZONE_TEST_ARGS} | ${TEE} iozone.out | |
62 | 78 | |||
63 | results: | 79 | results: | |
64 | ${MKDIR} /tmp/benches/`domainname` | 80 | ${MKDIR} /tmp/benches/`domainname` | |
65 | ${CP} ${WRKSRC}/iozone.out /tmp/benches/`domainname`/iozone.`uname`-`uname -m`-`uname -r`.`hostname` | 81 | ${CP} ${WRKSRC}/iozone.out /tmp/benches/`domainname`/iozone.`uname`-`uname -m`-`uname -r`.`hostname` | |
66 | 82 | |||
67 | .include "../../mk/pthread.buildlink3.mk" | 83 | .include "../../mk/pthread.buildlink3.mk" | |
68 | .include "../../mk/bsd.pkg.mk" | 84 | .include "../../mk/bsd.pkg.mk" |
@@ -1,4 +1,19 @@ | @@ -1,4 +1,19 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2009/06/14 17:33:11 joerg Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2011/12/02 15:31:44 hauke Exp $ | |
2 | bin/fileop | |||
2 | bin/iozone | 3 | bin/iozone | |
4 | bin/iozone_report | |||
5 | bin/iozone_visualizer | |||
6 | bin/pit_server | |||
3 | man/man1/iozone.1 | 7 | man/man1/iozone.1 | |
8 | share/doc/IOzone/IOzone_msword_98.pdf | |||
4 | share/doc/IOzone/Iozone_ps.gz | 9 | share/doc/IOzone/Iozone_ps.gz | |
10 | share/doc/IOzone/Run_rules.doc | |||
11 | share/examples/IOzone/Generate_Graphs | |||
12 | share/examples/IOzone/Gnuplot.txt | |||
13 | share/examples/IOzone/client_list | |||
14 | share/examples/IOzone/gengnuplot.sh | |||
15 | share/examples/IOzone/gnu3d.dem | |||
16 | share/examples/IOzone/gnuplot.dem | |||
17 | share/examples/IOzone/gnuplotps.dem | |||
18 | share/examples/IOzone/read_telemetry | |||
19 | share/examples/IOzone/write_telemetry |
@@ -1,8 +1,10 @@ | @@ -1,8 +1,10 @@ | |||
1 | $NetBSD: distinfo,v 1.17 2011/11/24 20:40:12 marino Exp $ | 1 | $NetBSD: distinfo,v 1.18 2011/12/02 15:31:44 hauke Exp $ | |
2 | 2 | |||
3 | SHA1 (iozone3_308.tar) = 7617d3d6db2f674cbd8e3a2dad3627e4dee7d821 | 3 | SHA1 (iozone3_397.tar) = 6095a38542286376f6eb2a203f253dc4c31ddeda | |
4 | RMD160 (iozone3_308.tar) = f0c55ed2e6ab8ac205d6a93f37c32db7f7707a64 | 4 | RMD160 (iozone3_397.tar) = b87e1732206eae0762d1e6bd552b33af8bdc045a | |
5 | Size (iozone3_308.tar) = 1556480 bytes | 5 | Size (iozone3_397.tar) = 1679360 bytes | |
6 | SHA1 (patch-aa) = d4f1675067918241643d56a3bcb5f3b9adf38f0a | 6 | SHA1 (patch-aa) = e209a364cdeca38c3995fbaebde3758bdd74e582 | |
7 | SHA1 (patch-ab) = 29f750bd4610956be9886137bbf5c158247a7db1 | 7 | SHA1 (patch-ab) = b3d2cbf160868ab2e81becc5d932c6459903c2dc | |
8 | SHA1 (patch-ac) = a7df47dca37d33e2658b27c4888294ad541fd1b2 | 8 | SHA1 (patch-ac) = a7df47dca37d33e2658b27c4888294ad541fd1b2 | |
9 | SHA1 (patch-iozone_visualizer.pl) = cd5cd6ed4892bfae3ed7c48088ccdf5c9a5a53ee | |||
10 | SHA1 (patch-report.pl) = 9101f79c78a55ca60993723923dd79dd51720490 |
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | $NetBSD: patch-aa,v 1.8 2011/11/24 20:40:12 marino Exp $ | 1 | $NetBSD: patch-aa,v 1.9 2011/12/02 15:31:44 hauke Exp $ | |
2 | 2 | |||
3 | --- makefile.orig 2008-07-17 15:07:10.000000000 +0000 | 3 | --- makefile.orig 2011-05-06 15:39:00.000000000 +0000 | |
4 | +++ makefile | 4 | +++ makefile | |
5 | @@ -75,6 +75,7 @@ all: | 5 | @@ -81,6 +81,7 @@ all: | |
6 | @echo " -> UWIN (32bit) <-" | 6 | @echo " -> UWIN (32bit) <-" | |
7 | @echo " -> Windows (95/98/NT) (32bit) <-" | 7 | @echo " -> Windows (95/98/NT) (32bit) <-" | |
8 | @echo "" | 8 | @echo "" | |
9 | + @false | 9 | + @false | |
10 | 10 | |||
11 | clean: | 11 | clean: | |
12 | rm -f *.o iozone fileop | 12 | rm -f *.o iozone fileop pit_server | |
13 | @@ -712,6 +713,12 @@ fileop_bsdi.o: fileop.c | 13 | @@ -792,6 +793,12 @@ fileop_bsdi.o: fileop.c | |
14 | @echo "" | 14 | @echo "" | |
15 | $(CC) -c -O $(CFLAGS) fileop.c -o fileop_bsdi.o | 15 | $(CC) -c -O $(CFLAGS) fileop.c -o fileop_bsdi.o | |
16 | 16 | |||
17 | +fileop_dragonfly.o: fileop.c | 17 | +fileop_dragonfly.o: fileop.c | |
18 | + @echo "" | 18 | + @echo "" | |
19 | + @echo "Building fileop for DragonFly" | 19 | + @echo "Building fileop for DragonFly" | |
20 | + @echo "" | 20 | + @echo "" | |
21 | + $(CC) -c -O $(CFLAGS) fileop.c -o fileop_dragonfly.o | 21 | + $(CC) -c -O $(CFLAGS) fileop.c -o fileop_dragonfly.o | |
22 | + | 22 | + | |
23 | fileop_freebsd.o: fileop.c | 23 | fileop_freebsd.o: fileop.c | |
24 | @echo "" | 24 | @echo "" | |
25 | @echo "Building fileop for FreeBSD" | 25 | @echo "Building fileop for FreeBSD" |
@@ -1,84 +1,82 @@ | @@ -1,84 +1,82 @@ | |||
1 | $NetBSD: patch-ab,v 1.8 2011/11/24 20:40:12 marino Exp $ | 1 | $NetBSD: patch-ab,v 1.9 2011/12/02 15:31:44 hauke Exp $ | |
2 | 2 | |||
3 | --- iozone.c.orig 2008-07-17 15:07:10.000000000 +0000 | 3 | --- iozone.c.orig 2011-05-06 15:39:00.000000000 +0000 | |
4 | +++ iozone.c | 4 | +++ iozone.c | |
5 | @@ -57,7 +57,7 @@ | 5 | @@ -70,7 +70,7 @@ | |
6 | #include <Windows.h> | 6 | #include <windows.h> | |
7 | int errno; | 7 | #include <errno.h> | |
8 | #else | 8 | #else | |
9 | -#if defined(linux) | 9 | -#if defined(linux) || defined(solaris) || defined(macosx) || defined(__AIX__) || defined(FreeBSD) || defined(_HPUX_SOURCE) | |
10 | +#if defined(linux) || defined(__DragonFly__) | 10 | +#if defined(linux) || defined(solaris) || defined(macosx) || defined(__AIX__) || defined(FreeBSD) || defined(_HPUX_SOURCE) || defined (__NetBSD__) || defined(__DragonFly__) | |
11 | #include <errno.h> | 11 | #include <errno.h> | |
12 | #else | 12 | #else | |
13 | extern int errno; /* imported for errors */ | 13 | extern int errno; /* imported for errors */ | |
14 | @@ -263,7 +263,7 @@ THISVERSION, | 14 | @@ -285,7 +285,7 @@ THISVERSION, | |
15 | #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__DragonFly__) | 15 | #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__DragonFly__) | |
16 | #include <malloc.h> | 16 | #include <malloc.h> | |
17 | #endif | 17 | #endif | |
18 | -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) | 18 | -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) | |
19 | +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__) | 19 | +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__) | |
20 | #include <stdlib.h> | 20 | #include <stdlib.h> | |
21 | #include <string.h> | 21 | #include <string.h> | |
22 | #endif | 22 | #endif | |
23 | @@ -412,6 +412,9 @@ struct piovec piov[PVECMAX]; | 23 | @@ -441,6 +441,9 @@ struct piovec piov[PVECMAX]; | |
24 | struct iovec piov[PVECMAX]; | 24 | struct iovec piov[PVECMAX]; | |
25 | #define piov_base iov_base | 25 | #define piov_base iov_base | |
26 | #define piov_len iov_len | 26 | #define piov_len iov_len | |
27 | +#if defined (__DragonFly__) | 27 | +#if defined (__DragonFly__) | |
28 | +#define DFLY_VECTOR_OFFSET | 28 | +#define DFLY_VECTOR_OFFSET | |
29 | +#endif | 29 | +#endif | |
30 | #endif | 30 | #endif | |
31 | 31 | |||
32 | #endif | 32 | #endif | |
33 | @@ -6534,7 +6537,11 @@ long long *data2; | 33 | @@ -6876,6 +6879,10 @@ long long *data2; | |
34 | if(odsync) | 34 | if(odsync) | |
35 | file_flags |= O_DSYNC; | 35 | file_flags |= O_DSYNC; | |
36 | #endif | 36 | #endif | |
37 | -#if defined(_HPUX_SOURCE) || defined(linux) || defined(freebsd) || defined(__DragonFly__) | |||
38 | +#if defined (__DragonFly__) | 37 | +#if defined (__DragonFly__) | |
39 | + if(read_sync) | 38 | + if(read_sync) | |
40 | + file_flags |= O_SYNC; | 39 | + file_flags |= O_SYNC; | |
41 | +#endif | 40 | +#endif | |
42 | +#if defined(_HPUX_SOURCE) || defined(linux) || defined(freebsd) | 41 | #if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__) || defined(__DragonFly__) | |
43 | if(read_sync) | 42 | if(read_sync) | |
44 | file_flags |=O_RSYNC|O_SYNC; | 43 | file_flags |=O_RSYNC|O_SYNC; | |
45 | #endif | 44 | @@ -10098,7 +10105,11 @@ long long *data1, *data2; | |
46 | @@ -9652,7 +9659,11 @@ long long *data1, *data2; | |||
47 | open_flags |=O_DIRECTIO; | 45 | open_flags |=O_DIRECTIO; | |
48 | #endif | 46 | #endif | |
49 | #endif | 47 | #endif | |
50 | -#if defined(_HPUX_SOURCE) || defined(linux) || defined(freebsd) || defined(__DragonFly__) | 48 | -#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__) || defined(__DragonFly__) | |
51 | +#if defined (__DragonFly__) | 49 | +#if defined (__DragonFly__) | |
52 | + if(read_sync) | 50 | + if(read_sync) | |
53 | + open_flags |= O_SYNC; | 51 | + open_flags |= O_SYNC; | |
54 | +#endif | 52 | +#endif | |
55 | +#if defined(_HPUX_SOURCE) || defined(linux) || defined(freebsd) | 53 | +#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__) | |
56 | if(read_sync) | 54 | if(read_sync) | |
57 | open_flags |=O_RSYNC|O_SYNC; | 55 | open_flags |=O_RSYNC|O_SYNC; | |
58 | #endif | 56 | #endif | |
59 | @@ -9865,6 +9876,7 @@ long long *data1,*data2; | 57 | @@ -10324,6 +10335,7 @@ long long *data1,*data2; | |
60 | off64_t filebytes64,i; | 58 | off64_t filebytes64,i; | |
61 | off64_t numrecs64; | 59 | off64_t numrecs64; | |
62 | int fd,ltest; | 60 | int fd,ltest; | |
63 | + int wval; | 61 | + int wval; | |
64 | #ifdef VXFS | 62 | #if defined(VXFS) || defined(solaris) | |
65 | int test_foo = 0; | 63 | int test_foo = 0; | |
66 | #endif | 64 | #endif | |
67 | @@ -10007,7 +10019,7 @@ long long *data1,*data2; | 65 | @@ -10454,7 +10466,7 @@ long long *data1,*data2; | |
68 | purgeit(piov[xx].piov_base,reclen); | 66 | purgeit(piov[xx].piov_base,reclen); | |
69 | } | 67 | } | |
70 | if(pwritev(fd, piov,numvecs | 68 | if(pwritev(fd, piov,numvecs | |
71 | -#ifdef PER_VECTOR_OFFSET | 69 | -#ifndef PER_VECTOR_OFFSET | |
72 | +#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET) | 70 | +#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET) | |
73 | , list_off[0] | 71 | , list_off[0] | |
74 | #endif | 72 | #endif | |
75 | ) != (reclen*numvecs)) | 73 | ) != (reclen*numvecs)) | |
76 | @@ -10310,7 +10322,7 @@ long long *data1,*data2; | 74 | @@ -10781,7 +10793,7 @@ long long *data1,*data2; | |
77 | purgeit(piov[xx].piov_base,reclen); | 75 | purgeit(piov[xx].piov_base,reclen); | |
78 | } | 76 | } | |
79 | if(preadv(fd, piov, numvecs | 77 | if(preadv(fd, piov, numvecs | |
80 | -#ifdef PERVECTOR_OFFSET | 78 | -#ifndef PER_VECTOR_OFFSET | |
81 | +#if defined(PERVECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET) | 79 | +#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET) | |
82 | , list_off[0] | 80 | , list_off[0] | |
83 | #endif | 81 | #endif | |
84 | ) != (numvecs * reclen)) | 82 | ) != (numvecs * reclen)) |
$NetBSD: patch-iozone_visualizer.pl,v 1.1 2011/12/02 15:31:44 hauke Exp $
--- iozone_visualizer.pl.orig 2011-12-02 13:57:45.000000000 +0000
+++ iozone_visualizer.pl
@@ -190,11 +190,11 @@ set ytics $yoffset
set logscale x 2
set logscale y 2
set autoscale z
-set xrange [2.**5:2.**24]
+#set xrange [2.**5:2.**24]
set xlabel "File size in KBytes" -2
set ylabel "Record size in Kbytes" 2
set zlabel "Kbytes/sec" 4,8
-set data style lines
+set style data lines
set dgrid3d 80,80,3
#set terminal png small picsize 900 700
set terminal png small size $size3d nocrop
$NetBSD: patch-report.pl,v 1.1 2011/12/02 15:31:44 hauke Exp $
--- report.pl.orig 2011-12-02 13:57:45.000000000 +0000
+++ report.pl
@@ -103,11 +103,11 @@ set ytics
set logscale x 2
set logscale y 2
set autoscale z
-set xrange [2.**5:2.**24]
+#set xrange [2.**5:2.**24]
set xlabel "File size in KBytes"
set ylabel "Record size in Kbytes"
set zlabel "Kbytes/sec"
-set data style lines
+set style data lines
set dgrid3d 80,80,3
#set terminal png small picsize 900 700
set terminal png small size 900 700