pkgsrc/benchmarks/iozone/Makefile

94 lines
2.6 KiB
Makefile
Raw Normal View History

2016-07-09 13:48:12 +02:00
# $NetBSD: Makefile,v 1.57 2016/07/09 11:48:12 rillig Exp $
1998-08-30 19:42:25 +02:00
DISTNAME= iozone3_430
PKGNAME= ${DISTNAME:S/3_/-3./}
PKGREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= http://www.iozone.org/src/current/
EXTRACT_SUFX= .tar
1998-08-30 19:42:25 +02:00
2008-01-19 10:16:17 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.iozone.org/
COMMENT= Benchmark for file read and write speed
# No derivative works
LICENSE= iozone-license
NOT_FOR_PLATFORM= Interix-*-* # has only 32-bit off_t
2005-10-19 17:27:19 +02:00
WRKSRC= ${WRKDIR}/${DISTNAME}/src/current
2006-09-09 04:41:53 +02:00
MAKE_FILE= makefile
USE_TOOLS+= tee perl
1998-08-30 19:42:25 +02:00
2012-01-12 16:11:37 +01:00
CPPFLAGS.SunOS+= -Dsolaris
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
BUILD_TARGET= netbsd
.elif !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
BUILD_TARGET= netbsd-AMD64
.elif !empty(OPSYS:M*BSD) || ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly"
BUILD_TARGET= ${LOWER_OPSYS}
.elif (${OPSYS} == "SunOS")
BUILD_TARGET= Solaris
.elif (${OPSYS} == "Darwin")
BUILD_TARGET= macosx
.elif (${OPSYS} == "IRIX")
BUILD_TARGET= ${OPSYS}${ABI:M64}
.elif (${OPSYS} == "BSDOS")
BUILD_TARGET= bsdi
.elif (${OPSYS} == "AIX")
BUILD_TARGET= ${OPSYS}
.else
# XXX: generic should work, but specific target would be better
BUILD_TARGET= generic
.endif
1998-08-30 19:42:25 +02:00
2016-07-09 13:48:12 +02:00
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'
2016-07-09 13:48:12 +02:00
EGDIR= share/examples/IOzone
DOCDIR= share/doc/IOzone
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} ${DOCDIR}
2004-07-30 17:50:37 +02:00
Update to iozone 3.308. pkgsrc changes: - add 'tee' to USE_TOOLS. - support an optional build with threads support and also support this in the 'benchmark' target. Changes since version 2.263 -Bug fix for -k used in conjunction with -t and content validation. -Add DragonFly target. -Put PER_VECTOR_OFFSET in for HP-UX -Fix compiler warning messages -Enforce minimum file size of page_size -Minor fixes. -Check fsync and close for errors. -Adding support for testing block devices. Will be done is phases. This is phase 1. (Single threaded mode only) -Adding 4 token support to client_list. Each entry may now contain 4 tokens and the new one is the absolute path to the temp file for testing. -Add support for external monitor start & stop for throughput tests. -IMON_START and IMON_STOP environmental variables used. -Bug fix for systems without O_DIRECT. Fall through in switch statement. -Fix for -c -t over NFS and initial writer close() when told by another to stop -Add Benny Halevy to contributors list. -Fix for Cygwin environment. -Code cleanup, and add arg to external trigger. -Code fixes for macosx -Add support for building with Sun's Studio 11 compiler -Bug fix for fread/fwrite with > 2Gig files. -Add O_DIRECT for Windows -Add -+w dedup testing mode. -Make remaining non-dedup data unique. -Make non-dedupable more unique. -Bug fix for non-dedup. -Make random offsets unique, using Knuth shuffle. -free memory used for random offset uniqueness. -Make unique/random offsets 64bits. -Add fallback for random/unique. -Make non-dedup region more unique -Add -+y ## to set percentage of interior dedup. -Add -+y ## to set percentage of interior dedup. -Bug fixes for -+w and -+y -Minor fix for dedup -Adding -+C to set percent of dedupable within a file. -Add solaris to read sync O_RSYNC -Add space to avoid field output touching each other. -Add check for config file exceeding MAXSTREAMS. -Add new contributor's name.
2008-08-25 21:35:30 +02:00
.include "options.mk"
IOZONE_TEST_ARGS= -Ea
.if !empty(PKG_OPTIONS:Mthreads)
IOZONE_TEST_ARGS+= -T -t4
.endif
1998-08-30 19:42:25 +02:00
do-install:
.for bb in fileop iozone pit_server
${INSTALL_PROGRAM} ${WRKSRC}/${bb} ${DESTDIR}${PREFIX}/bin
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/iozone_visualizer.pl \
${DESTDIR}${PREFIX}/bin/iozone_visualizer
${INSTALL_SCRIPT} ${WRKSRC}/report.pl \
${DESTDIR}${PREFIX}/bin/iozone_report
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.for dd in IOzone_msword_98.pdf Iozone_ps.gz Run_rules.doc
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/${dd} \
${DESTDIR}${PREFIX}/${DOCDIR}/
.endfor
.for ee in Generate_Graphs Gnuplot.txt client_list gengnuplot.sh \
gnu3d.dem gnuplot.dem gnuplotps.dem read_telemetry write_telemetry
${INSTALL_DATA} ${WRKSRC}/${ee} \
${DESTDIR}${PREFIX}/${EGDIR}/
.endfor
benchmark:
Update to iozone 3.308. pkgsrc changes: - add 'tee' to USE_TOOLS. - support an optional build with threads support and also support this in the 'benchmark' target. Changes since version 2.263 -Bug fix for -k used in conjunction with -t and content validation. -Add DragonFly target. -Put PER_VECTOR_OFFSET in for HP-UX -Fix compiler warning messages -Enforce minimum file size of page_size -Minor fixes. -Check fsync and close for errors. -Adding support for testing block devices. Will be done is phases. This is phase 1. (Single threaded mode only) -Adding 4 token support to client_list. Each entry may now contain 4 tokens and the new one is the absolute path to the temp file for testing. -Add support for external monitor start & stop for throughput tests. -IMON_START and IMON_STOP environmental variables used. -Bug fix for systems without O_DIRECT. Fall through in switch statement. -Fix for -c -t over NFS and initial writer close() when told by another to stop -Add Benny Halevy to contributors list. -Fix for Cygwin environment. -Code cleanup, and add arg to external trigger. -Code fixes for macosx -Add support for building with Sun's Studio 11 compiler -Bug fix for fread/fwrite with > 2Gig files. -Add O_DIRECT for Windows -Add -+w dedup testing mode. -Make remaining non-dedup data unique. -Make non-dedupable more unique. -Bug fix for non-dedup. -Make random offsets unique, using Knuth shuffle. -free memory used for random offset uniqueness. -Make unique/random offsets 64bits. -Add fallback for random/unique. -Make non-dedup region more unique -Add -+y ## to set percentage of interior dedup. -Add -+y ## to set percentage of interior dedup. -Bug fixes for -+w and -+y -Minor fix for dedup -Adding -+C to set percent of dedupable within a file. -Add solaris to read sync O_RSYNC -Add space to avoid field output touching each other. -Add check for config file exceeding MAXSTREAMS. -Add new contributor's name.
2008-08-25 21:35:30 +02:00
cd ${WRKSRC}; ./iozone ${IOZONE_TEST_ARGS} | ${TEE} iozone.out
results:
${MKDIR} /tmp/benches/`domainname`
${CP} ${WRKSRC}/iozone.out /tmp/benches/`domainname`/iozone.`uname`-`uname -m`-`uname -r`.`hostname`
Update to iozone 3.308. pkgsrc changes: - add 'tee' to USE_TOOLS. - support an optional build with threads support and also support this in the 'benchmark' target. Changes since version 2.263 -Bug fix for -k used in conjunction with -t and content validation. -Add DragonFly target. -Put PER_VECTOR_OFFSET in for HP-UX -Fix compiler warning messages -Enforce minimum file size of page_size -Minor fixes. -Check fsync and close for errors. -Adding support for testing block devices. Will be done is phases. This is phase 1. (Single threaded mode only) -Adding 4 token support to client_list. Each entry may now contain 4 tokens and the new one is the absolute path to the temp file for testing. -Add support for external monitor start & stop for throughput tests. -IMON_START and IMON_STOP environmental variables used. -Bug fix for systems without O_DIRECT. Fall through in switch statement. -Fix for -c -t over NFS and initial writer close() when told by another to stop -Add Benny Halevy to contributors list. -Fix for Cygwin environment. -Code cleanup, and add arg to external trigger. -Code fixes for macosx -Add support for building with Sun's Studio 11 compiler -Bug fix for fread/fwrite with > 2Gig files. -Add O_DIRECT for Windows -Add -+w dedup testing mode. -Make remaining non-dedup data unique. -Make non-dedupable more unique. -Bug fix for non-dedup. -Make random offsets unique, using Knuth shuffle. -free memory used for random offset uniqueness. -Make unique/random offsets 64bits. -Add fallback for random/unique. -Make non-dedup region more unique -Add -+y ## to set percentage of interior dedup. -Add -+y ## to set percentage of interior dedup. -Bug fixes for -+w and -+y -Minor fix for dedup -Adding -+C to set percent of dedupable within a file. -Add solaris to read sync O_RSYNC -Add space to avoid field output touching each other. -Add check for config file exceeding MAXSTREAMS. -Add new contributor's name.
2008-08-25 21:35:30 +02:00
.include "../../mk/pthread.buildlink3.mk"
1998-08-30 19:42:25 +02:00
.include "../../mk/bsd.pkg.mk"