pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/benchmarks/iozone iozone: updated to 3.493



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a4e0a8d4c0a
branches:  trunk
changeset: 380066:2a4e0a8d4c0a
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat May 28 11:39:57 2022 +0000

description:
iozone: updated to 3.493

Revision 3.432
Adding NetBSD 64 bit.

Revision 3.434
Adding code from Alexey Skidanov. Pthread burst I/O.

Revision 3.434
Convert calls from atoi() into atoll() for those things that are actually long longs.

Revision 3.436
Code cleanup for casting consistency

Revision 3.442
Code cleanup for casting consistency and *&(^&*( compiler warnings !!!

Revision 3.443
Code cleanup for all of the un-needed void * maddness.

Revision 3.444
Cleanup 64 bit compiles.

Revision 3.445
Some BSD changes to avoid compiler complaints.

Revision 3.446
Some BSD changes to avoid compiler complaints.

Revision 3.447
Make sure we don't have missing prototypes.

Revision 3.448
Add support for building targets with NO_SIGNAL, NO_FORK, NO_SOCKET

Revision 3.449
Add support for building targets with NO_SIGNAL, NO_FORK, NO_SOCKET

Revision 3.450
Fix missing typedef in FreeBSD.

Revision 3.451
Fix typeoh in spelling of DragonFly.

Revision 3.452
Make the sighandler_t change effective for all BSD derivatives.

Revision 3.454
Make the my_sig_t change effective for all BSD derivatives.

Revision 3.455
Unify the usage of __FreeBSD__

Revision 3.456
Build on BSD 10.3 without warnings.  Clang compilers.

Revision 3.457
Build on BSD 10.3 without warnings.  Clang compilers.

Revision 3.458
Make more friendly to build on Solaris.

Revision 3.459
Make more friendly to build on Solaris.

Revision 3.460
Make more friendly to build on Solaris.

Revision 3.461
Make more friendly to build on Solaris.

Revision 3.462
Make more friendly to build on Solaris.

Revision 3.463
Make more friendly to build on Solaris.

Revision 3.464
Make more friendly to build on Solaris.

Revision 3.465
Make more friendly to build on Solaris.

Revision 3.466
Fix error messages to use the correct file name from dummyfile[xx] instead of
"filename" in the thread tests.

Revision 3.467
Fix compiler warning from Clang on MacOS for mythread_create(). Prototype
didn't match the formal function definition.

Revision 3.469
Switch to IOZ_macosx everywhere for compatibility with Mountain Lion.

Revision 3.470
Increase MAXSTREAMS to 1024. Systems have more power today than 20+ years ago.

Revision 3.471
Make -+W -+C -+y use a flag instead of its option value to indiate its usage.

Revision 3.472
Adding -+M (special dedupe layout)
Adding -+a (set compression in special layout)
Adding -+Q (set dedupe granule size in special layout)

Revision 3.473
no change.

Revision 3.474
Cleanup for Cygwin64 build.

Revision 3.475
Cleanup for Cygwin64 build warnings.

Revision 3.476
Cleanup compiler warnings.

Revision 3.477
Bug fix code in special_gen_new_buf..

Revision 3.478
Bug fix code in special_gen_new_buf.. More copies of the other bug.

Revision 3.479
Bug fix code in special_gen_new_buf.. needed (*op ==0) in one more line.

Revision 3.480
Add -+R option to specify the file names are in a file.

Revision 3.481
Adding new contributor Sudhir Kumar

Revision 3.482
Fix help menu for -+R option.  It does not also use -F
Bug fix for case of -H where gcc seems to think the size of long long
is != size of off64_t
Bug fix for prototype mismatch in async_write_no_copy.

Revision 3.483
Fix nesting of #ifdefs so that Windows lack of support for O_DIRECT presents
splash indication.
Enable O_DIRECT for Windows builds.

Revision 3.485
Improvements for building under Android

Revision 3.486
Fix compiler warning on Android.

Revision 3.488
Improve the Yates/Knuth method for shuffle.

Revision 3.489
Fix gcc-10 warning about no-common.

Revision 3.490
Fix compiler warning when HAVE_ANSIC is not defined

Revision 3.491
Fix CFLAGS issue from Fedora maintainer.

Revision 3.492
Improve the -+M option's compression pattern so that the achieved
compressibility is closer to the value specifed in the -+a option.

Revision 3.493
Move memorey allocaiton of main buffer to after the getopt, else
the -S can cause issues later.

diffstat:

 benchmarks/iozone/Makefile                 |  19 ++---
 benchmarks/iozone/distinfo                 |  14 +--
 benchmarks/iozone/options.mk               |   3 +-
 benchmarks/iozone/patches/patch-ab         |  87 ---------------------------
 benchmarks/iozone/patches/patch-ac         |  20 ------
 benchmarks/iozone/patches/patch-fileop.c   |  14 ----
 benchmarks/iozone/patches/patch-iozone.c   |  53 ++++++++++++++++
 benchmarks/iozone/patches/patch-libasync.c |  22 ------
 benchmarks/iozone/patches/patch-makefile   |  95 ------------------------------
 9 files changed, 66 insertions(+), 261 deletions(-)

diffs (truncated from 400 to 300 lines):

diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/Makefile
--- a/benchmarks/iozone/Makefile        Sat May 28 11:33:21 2022 +0000
+++ b/benchmarks/iozone/Makefile        Sat May 28 11:39:57 2022 +0000
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.61 2021/05/24 19:49:09 wiz Exp $
+# $NetBSD: Makefile,v 1.62 2022/05/28 11:39:57 adam Exp $
 
-DISTNAME=      iozone3_430
+DISTNAME=      iozone3_493
 PKGNAME=       ${DISTNAME:S/3_/-3./}
-PKGREVISION=   5
 CATEGORIES=    benchmarks
 MASTER_SITES=  http://www.iozone.org/src/current/
-EXTRACT_SUFX=  .tar
+EXTRACT_SUFX=  .tgz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.iozone.org/
@@ -17,7 +16,8 @@
 
 WRKSRC=                        ${WRKDIR}/${DISTNAME}/src/current
 MAKE_FILE=             makefile
-USE_TOOLS+=            tee perl
+USE_TOOLS+=            gmake perl tee
+MAKE_JOBS_SAFE=                no
 
 CPPFLAGS.SunOS+=       -Dsolaris
 
@@ -45,17 +45,12 @@
 .endif
 
 REPLACE_PERL=          iozone_visualizer.pl report.pl
-SUBST_CLASSES+=                crlf
-SUBST_MESSAGE.crlf=    Stripping EOL CR in ${REPLACE_PERL}
-SUBST_STAGE.crlf=      post-extract
-SUBST_FILES.crlf=      ${REPLACE_PERL}
-SUBST_FILTER_CMD.crlf= ${TR} -d '\r'
 
 EGDIR=                 share/examples/IOzone
 DOCDIR=                        share/doc/IOzone
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 ${EGDIR} ${DOCDIR}
 
-.include "options.mk"
+#.include "options.mk"
 
 IOZONE_TEST_ARGS=              -Ea
 .if !empty(PKG_OPTIONS:Mthreads)
@@ -83,7 +78,7 @@
 .endfor
 
 benchmark:
-       cd ${WRKSRC}; ./iozone ${IOZONE_TEST_ARGS} | ${TEE} iozone.out
+       cd ${WRKSRC} && ./iozone ${IOZONE_TEST_ARGS} | ${TEE} iozone.out
 
 results:
        ${MKDIR} /tmp/benches/`domainname`
diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/distinfo
--- a/benchmarks/iozone/distinfo        Sat May 28 11:33:21 2022 +0000
+++ b/benchmarks/iozone/distinfo        Sat May 28 11:39:57 2022 +0000
@@ -1,10 +1,6 @@
-$NetBSD: distinfo,v 1.26 2021/10/26 10:02:53 nia Exp $
+$NetBSD: distinfo,v 1.27 2022/05/28 11:39:57 adam Exp $
 
-BLAKE2s (iozone3_430.tar) = 9d7168632b5d43d559747b4552bef75937dd4c9b95fe6735c4638fb19a8165c8
-SHA512 (iozone3_430.tar) = f513c1a34bcdfadca0d01a942d55c7494e5646cf17384140df42643259456d41e40a54453ab3b9a1f1ebdeb456a9b4b1f836f979927cac57391b9a20ecdbcb55
-Size (iozone3_430.tar) = 1832960 bytes
-SHA1 (patch-ab) = fdd36fead26811aa830df5fac35b79a9b62ed1f0
-SHA1 (patch-ac) = 6a02e13f3441a76709fbe8ba064555b650f9bd1c
-SHA1 (patch-fileop.c) = 792dd0e3ad9de4313d34e367ea0c01d9be319229
-SHA1 (patch-libasync.c) = 2c1bebb4423ea84329511cc7fd32d093a6063bf9
-SHA1 (patch-makefile) = 0eb68d8838141e96b08a156f59ed197407eb95e9
+BLAKE2s (iozone3_493.tgz) = 61a972bf5a47566dbfd085480699960b59c3c91650aec1daccfee9a79400b8fa
+SHA512 (iozone3_493.tgz) = 8d132a5840e55ef57e77c889e15dc7095e1d778baec00626355bc6c228d5fb7985f30bbe24f4172f8811ab38f763ac33e9506f9b3e0e8d9b22f2224227022953
+Size (iozone3_493.tgz) = 831743 bytes
+SHA1 (patch-iozone.c) = ddc23f2bbf6ff1e084affc29917abcd6bf79be8d
diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/options.mk
--- a/benchmarks/iozone/options.mk      Sat May 28 11:33:21 2022 +0000
+++ b/benchmarks/iozone/options.mk      Sat May 28 11:39:57 2022 +0000
@@ -1,5 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2019/11/03 11:55:29 rillig Exp $
-#
+# $NetBSD: options.mk,v 1.3 2022/05/28 11:39:57 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.iozone
 PKG_SUPPORTED_OPTIONS= threads
diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/patches/patch-ab
--- a/benchmarks/iozone/patches/patch-ab        Sat May 28 11:33:21 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-$NetBSD: patch-ab,v 1.12 2014/12/09 13:53:13 mef Exp $
-
-Add NetBSD, DragonFly, including correction of typo
-
---- iozone.c.orig      2012-05-10 05:14:12.000000000 +0000
-+++ iozone.c
-@@ -70,7 +70,7 @@
- #include <windows.h>
- #include <errno.h>
- #else
--#if defined(linux) || defined(solaris) || defined(IOZ_macosx) || defined(__AIX__) || defined(FreeBSD) || defined(_HPUX_SOURCE) || defined(__OpenBSD__) || defined(__DragonFly__)
-+#if defined(linux) || defined(solaris) || defined(IOZ_macosx) || defined(__AIX__) || defined(__FreeBSD__) || defined(_HPUX_SOURCE) || defined(__OpenBSD__) || defined(__DragonFly__) || 
defined(__NetBSD__)
- #include <errno.h>
- #else
- extern  int errno;   /* imported for errors */
-@@ -288,7 +288,7 @@ THISVERSION,
- #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__DragonFly__)
- #include <malloc.h>
- #endif
--#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__)
-+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__)
- #include <stdlib.h>
- #include <string.h>
- #endif
-@@ -299,7 +299,7 @@ THISVERSION,
- #endif
- #endif
- 
--#if defined (__FreeBSD__) || defined(__DSragonFly__)
-+#if defined (__FreeBSD__) || defined(__DragonFly__)
- #ifndef O_RSYNC
- #define O_RSYNC O_FSYNC
- #endif
-@@ -444,6 +444,9 @@ struct piovec piov[PVECMAX];
- struct iovec piov[PVECMAX];
- #define piov_base iov_base
- #define piov_len iov_len
-+#if defined (__DragonFly__)
-+#define DFLY_VECTOR_OFFSET
-+#endif
- #endif
- 
- #endif
-@@ -7363,7 +7366,11 @@ long long *data2;
-       if(odsync)
-               file_flags |= O_DSYNC;
- #endif
--#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__) || defined(__DragonFly__)
-+#if defined (__DragonFly__)
-+      if(read_sync)
-+              file_flags |= O_SYNC;
-+#endif
-+#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__)
-       if(read_sync)
-               file_flags |=O_RSYNC|O_SYNC;
- #endif
-@@ -10585,7 +10592,11 @@ long long *data1, *data2;
-               open_flags |=O_DIRECTIO;
- #endif
- #endif
--#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__) || defined(__DragonFly__)
-+#if defined (__DragonFly__)
-+      if(read_sync)
-+              open_flags |= O_SYNC;
-+#endif
-+#if defined(_HPUX_SOURCE) || defined(linux) || defined(__FreeBSD__)
-       if(read_sync)
-               open_flags |=O_RSYNC|O_SYNC;
- #endif
-@@ -10941,7 +10952,7 @@ long long *data1,*data2;
-                                       purgeit(piov[xx].piov_base,reclen);
-                       }
-                       if(pwritev(fd, piov,numvecs
--#ifndef PER_VECTOR_OFFSET
-+#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET)
-                               , list_off[0]
- #endif
-                               ) != (reclen*numvecs))
-@@ -11268,7 +11279,7 @@ long long *data1,*data2;
-                                  purgeit(piov[xx].piov_base,reclen);
-                       }
-                       if(preadv(fd, piov, numvecs
--#ifndef PER_VECTOR_OFFSET
-+#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET)
-                               , list_off[0]
- #endif
-                               ) != (numvecs * reclen))
diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/patches/patch-ac
--- a/benchmarks/iozone/patches/patch-ac        Sat May 28 11:33:21 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2014/12/09 13:53:13 mef Exp $
-
-Add NetBSD
-
---- libbif.c.orig      2014-08-12 04:39:14.000000000 +0900
-+++ libbif.c   2014-12-09 22:18:29.000000000 +0900
-@@ -23,11 +23,11 @@
- #include <sys/fcntl.h>
- #endif
- 
--#if defined(OSV5) || defined(linux) || defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)
-+#if defined(OSV5) || defined(linux) || defined (__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__)
- #include <string.h>
- #endif
- 
--#if defined(linux) || defined(__DragonFly__) || defined(IOZ_macosx)
-+#if defined(linux) || defined(__DragonFly__) || defined(IOZ_macosx) || defined(__NetBSD__)
- #include <unistd.h>
- #include <stdlib.h>
- #endif
diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/patches/patch-fileop.c
--- a/benchmarks/iozone/patches/patch-fileop.c  Sat May 28 11:33:21 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-fileop.c,v 1.1 2017/08/04 18:15:05 mrg Exp $
-
-remove a macro-as-prototype failure.
-
---- fileop.c.orig      2015-01-07 12:43:10.000000000 -0800
-+++ fileop.c   2017-08-04 11:05:36.713202977 -0700
-@@ -124,7 +124,6 @@
- void file_read(int);
- void splash(void);
- void usage(void);
--void bzero();
- void clear_stats();
- int validate(char *, int , char );
- 
diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/patches/patch-iozone.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/iozone/patches/patch-iozone.c  Sat May 28 11:39:57 2022 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-iozone.c,v 1.1 2022/05/28 11:39:57 adam Exp $
+
+Support DragonFly.
+pthread_barrierattr_setpshared() is hidden on NetBSD.
+
+--- iozone.c.orig      2022-03-16 20:00:50.000000000 +0000
++++ iozone.c
+@@ -475,6 +475,9 @@ struct piovec piov[PVECMAX];
+ struct iovec piov[PVECMAX];
+ #define piov_base iov_base
+ #define piov_len iov_len
++#if defined (__DragonFly__)
++#define DFLY_VECTOR_OFFSET
++#endif
+ #endif
+ 
+ #endif
+@@ -3971,13 +3974,17 @@ throughput_test()
+       if(use_thread)
+       {
+               barrier = (pthread_barrier_t*)alloc_mem(sizeof(pthread_barrier_t), 0); // Not shared
++#ifndef __NetBSD__
+               pthread_barrierattr_setpshared(&barrier_attr, PTHREAD_PROCESS_PRIVATE);
++#endif
+               pthread_barrier_init(barrier, &barrier_attr, num_child);
+       }
+       else
+       {
+               barrier = (pthread_barrier_t*)alloc_mem(sizeof(pthread_barrier_t), 1); // Shared
++#ifndef __NetBSD__
+               pthread_barrierattr_setpshared(&barrier_attr, PTHREAD_PROCESS_SHARED);
++#endif
+               pthread_barrier_init(barrier, &barrier_attr, num_child);
+       }
+ 
+@@ -11429,7 +11436,7 @@ long long *data1,*data2;
+                                       purgeit(piov[xx].piov_base,reclen);
+                       }
+                       if(pwritev(fd, piov,numvecs
+-#ifndef PER_VECTOR_OFFSET
++#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET)
+                               , list_off[0]
+ #endif
+                               ) != (reclen*numvecs))
+@@ -11759,7 +11766,7 @@ long long *data1,*data2;
+                                  purgeit(piov[xx].piov_base,reclen);
+                       }
+                       if(preadv(fd, piov, numvecs
+-#ifndef PER_VECTOR_OFFSET
++#if defined(PER_VECTOR_OFFSET) || defined(DFLY_VECTOR_OFFSET)
+                               , list_off[0]
+ #endif
+                               ) != (numvecs * reclen))
diff -r 8f8a1177b6e6 -r 2a4e0a8d4c0a benchmarks/iozone/patches/patch-libasync.c
--- a/benchmarks/iozone/patches/patch-libasync.c        Sat May 28 11:33:21 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-libasync.c,v 1.1 2015/07/13 14:05:56 ryoon Exp $
-
---- libasync.c.orig    2015-01-07 20:43:10.000000000 +0000
-+++ libasync.c
-@@ -96,7 +96,7 @@
- 
- #include <sys/types.h>
- #include <aio.h>
--#if defined(solaris) || defined(linux) || defined(SCO_Unixware_gcc)
-+#if defined(solaris) || defined(linux) || defined(SCO_Unixware_gcc) || defined(__NetBSD__)
- #else
- #include <sys/timers.h>
- #endif
-@@ -119,7 +119,7 @@
- #include <stdlib.h>
- #endif
- 
--#if (defined(solaris) && defined(__LP64__)) || defined(__s390x__) || defined(FreeBSD)
-+#if (defined(solaris) && defined(__LP64__)) || defined(__s390x__) || defined(FreeBSD) || defined(__NetBSD__)
- /* If we are building for 64-bit Solaris, all functions that return pointers
-  * must be declared before they are used; otherwise the compiler will assume



Home | Main Index | Thread Index | Old Index