summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorryoon <ryoon>2017-02-04 12:50:23 +0000
committerryoon <ryoon>2017-02-04 12:50:23 +0000
commit11010a78265526908d140ff6a4137453ed92e3fb (patch)
tree6ab84a8c97c7e70e6362d595977cf495837cabd3 /benchmarks
parent4b931e238a95cd18007ffacd967e821722c8219a (diff)
downloadpkgsrc-11010a78265526908d140ff6a4137453ed92e3fb.tar.gz
Import fio-2.17 as benchmarks/fio from pkgsrc-wip/fio.
fio is a tool that will spawn a number of threads or processes doing a particular type of io action as specified by the user. fio takes a number of global parameters, each inherited by the thread unless otherwise parameters given to them overriding that setting is given. The typical use of fio is to write a job file matching the io load one wants to simulate.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/fio/DESCR6
-rw-r--r--benchmarks/fio/Makefile33
-rw-r--r--benchmarks/fio/PLIST57
-rw-r--r--benchmarks/fio/distinfo7
-rw-r--r--benchmarks/fio/patches/patch-Makefile29
5 files changed, 132 insertions, 0 deletions
diff --git a/benchmarks/fio/DESCR b/benchmarks/fio/DESCR
new file mode 100644
index 00000000000..615e8257d95
--- /dev/null
+++ b/benchmarks/fio/DESCR
@@ -0,0 +1,6 @@
+fio is a tool that will spawn a number of threads or processes doing a
+particular type of io action as specified by the user. fio takes a
+number of global parameters, each inherited by the thread unless
+otherwise parameters given to them overriding that setting is given.
+The typical use of fio is to write a job file matching the io load
+one wants to simulate.
diff --git a/benchmarks/fio/Makefile b/benchmarks/fio/Makefile
new file mode 100644
index 00000000000..8db345323c0
--- /dev/null
+++ b/benchmarks/fio/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2017/02/04 12:50:23 ryoon Exp $
+
+DISTNAME= fio-2.17
+CATEGORIES= benchmarks
+MASTER_SITES= http://brick.kernel.dk/snaps/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://git.kernel.dk/?p=fio.git;a=summary
+COMMENT= Flexible IO Tester
+LICENSE= gnu-gpl-v2
+
+HAS_CONFIGURE= yes
+USE_TOOLS+= bash gmake lex yacc
+
+DOCDIR= ${PREFIX}/share/doc/fio
+EGDIR= ${PREFIX}/share/examples/fio
+
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+
+REPLACE_BASH+= tools/genfio
+REPLACE_PYTHON+= tools/fio_latency2csv.py
+REPLACE_PYTHON+= tools/fiologparser.py
+REPLACE_PYTHON+= tools/hist/fiologparser_hist.py
+REPLACE_PYTHON+= tools/plot/fio2gnuplot
+
+INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/HOWTO ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.fio ${DESTDIR}${EGDIR}
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/fio/PLIST b/benchmarks/fio/PLIST
new file mode 100644
index 00000000000..eab56ae2494
--- /dev/null
+++ b/benchmarks/fio/PLIST
@@ -0,0 +1,57 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/04 12:50:23 ryoon Exp $
+bin/fio
+bin/fio-dedupe
+bin/fio-genzipf
+bin/fio-verify-state
+bin/fio2gnuplot
+bin/fio_generate_plots
+bin/fio_latency2csv.py
+bin/fiologparser.py
+bin/fiologparser_hist.py
+bin/genfio
+man/man1/fio.1
+man/man1/fio2gnuplot.1
+man/man1/fio_generate_plots.1
+man/man1/fiologparser_hist.py.1
+share/doc/fio/HOWTO
+share/examples/fio/1mbs_clients.fio
+share/examples/fio/aio-read.fio
+share/examples/fio/backwards-read.fio
+share/examples/fio/basic-verify.fio
+share/examples/fio/cpuio.fio
+share/examples/fio/dev-dax.fio
+share/examples/fio/disk-zone-profile.fio
+share/examples/fio/e4defrag.fio
+share/examples/fio/e4defrag2.fio
+share/examples/fio/enospc-pressure.fio
+share/examples/fio/falloc.fio
+share/examples/fio/fixed-rate-submission.fio
+share/examples/fio/flow.fio
+share/examples/fio/fsx.fio
+share/examples/fio/fusion-aw-sync.fio
+share/examples/fio/gfapi.fio
+share/examples/fio/iometer-file-access-server.fio
+share/examples/fio/jesd219.fio
+share/examples/fio/latency-profile.fio
+share/examples/fio/libhdfs.fio
+share/examples/fio/mtd.fio
+share/examples/fio/netio.fio
+share/examples/fio/netio_multicast.fio
+share/examples/fio/null.fio
+share/examples/fio/numa.fio
+share/examples/fio/pmemblk.fio
+share/examples/fio/poisson-rate-submission.fio
+share/examples/fio/rand-zones.fio
+share/examples/fio/rbd.fio
+share/examples/fio/rdmaio-client.fio
+share/examples/fio/rdmaio-server.fio
+share/examples/fio/ssd-steadystate.fio
+share/examples/fio/ssd-test.fio
+share/examples/fio/steadystate.fio
+share/examples/fio/surface-scan.fio
+share/examples/fio/tiobench-example.fio
+share/examples/fio/waitfor.fio
+share/examples/fio/zipf.fio
+share/fio/graph2D.gpm
+share/fio/graph3D.gpm
+share/fio/math.gpm
diff --git a/benchmarks/fio/distinfo b/benchmarks/fio/distinfo
new file mode 100644
index 00000000000..1a7e5357daf
--- /dev/null
+++ b/benchmarks/fio/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/02/04 12:50:23 ryoon Exp $
+
+SHA1 (fio-2.17.tar.gz) = 52419c2b9b566e279b75bbeaee6ea3915782fe0d
+RMD160 (fio-2.17.tar.gz) = 3a888562c002720f2db15a3885c710ce99149bd1
+SHA512 (fio-2.17.tar.gz) = a5ebf27d6d4e1ef1458e0db08308640ee88b62283a12ae40b9f3629164531b2dac3a172d0357f9a2661faa0a9755e04421415a320402bc1503a2a7d3271eee3a
+Size (fio-2.17.tar.gz) = 664471 bytes
+SHA1 (patch-Makefile) = 63b4abb38bd36fa7c65224fbe440938b63cde3c6
diff --git a/benchmarks/fio/patches/patch-Makefile b/benchmarks/fio/patches/patch-Makefile
new file mode 100644
index 00000000000..3c06fe90cf0
--- /dev/null
+++ b/benchmarks/fio/patches/patch-Makefile
@@ -0,0 +1,29 @@
+$NetBSD: patch-Makefile,v 1.1 2017/02/04 12:50:23 ryoon Exp $
+
+Convert the fmt(1) command to a tr(1) one (the fmt(1) old syntax command is not
+supported on all Unix systems).
+
+--- Makefile.orig 2017-01-17 15:51:31.000000000 +0000
++++ Makefile
+@@ -319,8 +319,8 @@ override CFLAGS += -DFIO_VERSION='"$(FIO
+ @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SRCDIR)/$*.c > $*.d
+ @mv -f $*.d $*.d.tmp
+ @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
+- @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -w 1 | \
+- sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
++ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | tr -cs "[:graph:]" "\n" | \
++ sed -e 's/^ *//' -e '/^$$/ d' -e 's/$$/:/' >> $*.d
+ @rm -f $*.d.tmp
+
+ ifdef CONFIG_ARITHMETIC
+@@ -358,8 +358,8 @@ init.o: init.c FIO-VERSION-FILE
+ @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SRCDIR)/$*.c > $*.d
+ @mv -f $*.d $*.d.tmp
+ @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
+- @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -w 1 | \
+- sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
++ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | tr -cs "[:graph:]" "\n" | \
++ sed -e 's/^ *//' -e '/^$$/ d' -e 's/$$/:/' >> $*.d
+ @rm -f $*.d.tmp
+
+ gcompat.o: gcompat.c gcompat.h