diff options
author | agc <agc> | 2003-07-17 15:11:44 +0000 |
---|---|---|
committer | agc <agc> | 2003-07-17 15:11:44 +0000 |
commit | b5e94cffbba0b68d8525e13efd8d604a92e14462 (patch) | |
tree | a35395af27e6729dbae835a1a8de1a135ca5159d /benchmarks | |
parent | 843507d07c0d5a48b5f2d65da8fdee749caf70ea (diff) | |
download | pkgsrc-b5e94cffbba0b68d8525e13efd8d604a92e14462.tar.gz |
Initial import of dbench-1.3 into the NetBSD Packages Collection.
Taken from the dbench README file:
Netbench is a terrible benchmark, but it's an "industry
standard" and it's what is used in the press to rate windows
fileservers like Samba and WindowsNT.
In order for the development methodologies of the open source
community to work we need to be able to run this benchmark in
an environment that a bunch of us have access to. We need the
source to the benchmark so we can see what it does. We need
to be able to split it into pieces to look for individual
bottlenecks. In short, we need to open up netbench to the
masses.
To do this I have written three tools, dbench, tbench and
smbtorture. All three read a load description file called
client.txt that was derived from a network sniffer dump of a
real netbench run. client.txt is about 4MB and describes the
90 thousand operations that a netbench client does in a
typical netbench run. They parse client.txt and use it to
produce the same load without having to buy a huge lab. They
can simulate any number of simultaneous clients.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/dbench/DESCR | 22 | ||||
-rw-r--r-- | benchmarks/dbench/Makefile | 21 | ||||
-rw-r--r-- | benchmarks/dbench/PLIST | 6 | ||||
-rw-r--r-- | benchmarks/dbench/distinfo | 6 | ||||
-rw-r--r-- | benchmarks/dbench/patches/patch-aa | 24 | ||||
-rw-r--r-- | benchmarks/dbench/patches/patch-ab | 13 |
6 files changed, 92 insertions, 0 deletions
diff --git a/benchmarks/dbench/DESCR b/benchmarks/dbench/DESCR new file mode 100644 index 00000000000..e388ca42323 --- /dev/null +++ b/benchmarks/dbench/DESCR @@ -0,0 +1,22 @@ +Taken from the dbench README file: + + Netbench is a terrible benchmark, but it's an "industry + standard" and it's what is used in the press to rate windows + fileservers like Samba and WindowsNT. + + In order for the development methodologies of the open source + community to work we need to be able to run this benchmark in + an environment that a bunch of us have access to. We need the + source to the benchmark so we can see what it does. We need + to be able to split it into pieces to look for individual + bottlenecks. In short, we need to open up netbench to the + masses. + + To do this I have written three tools, dbench, tbench and + smbtorture. All three read a load description file called + client.txt that was derived from a network sniffer dump of a + real netbench run. client.txt is about 4MB and describes the + 90 thousand operations that a netbench client does in a + typical netbench run. They parse client.txt and use it to + produce the same load without having to buy a huge lab. They + can simulate any number of simultaneous clients. diff --git a/benchmarks/dbench/Makefile b/benchmarks/dbench/Makefile new file mode 100644 index 00000000000..b1bf183aafe --- /dev/null +++ b/benchmarks/dbench/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/07/17 15:11:44 agc Exp $ +# + +DISTNAME= dbench-1.3 +CATEGORIES= benchmarks +MASTER_SITES= ftp://dnuc.polyn.kiae.su/pub/dbench/ + +MAINTAINER= tech-pkg@netbsd.org +HOMEPAGE= http://samba.org/ftp/tridge/dbench/README +COMMENT= Simulation of the Ziff-Davis netbench benchmark + +WRKSRC= ${WRKDIR}/dbench + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dbench ${PREFIX}/bin/dbench + ${INSTALL_PROGRAM} ${WRKSRC}/tbench ${PREFIX}/bin/tbench + ${INSTALL_PROGRAM} ${WRKSRC}/tbench_srv ${PREFIX}/bin/tbench_srv + ${INSTALL_DATA_DIR} ${PREFIX}/share/dbench + ${INSTALL_DATA} ${WRKSRC}/client.txt ${PREFIX}/share/dbench/client.txt + +.include "../../mk/bsd.pkg.mk" diff --git a/benchmarks/dbench/PLIST b/benchmarks/dbench/PLIST new file mode 100644 index 00000000000..2ff7f9080e8 --- /dev/null +++ b/benchmarks/dbench/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/17 15:11:44 agc Exp $ +bin/dbench +bin/tbench +bin/tbench_srv +share/dbench/client.txt +@dirrm share/dbench diff --git a/benchmarks/dbench/distinfo b/benchmarks/dbench/distinfo new file mode 100644 index 00000000000..56fd75fef75 --- /dev/null +++ b/benchmarks/dbench/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/07/17 15:11:44 agc Exp $ + +SHA1 (dbench-1.3.tar.gz) = b46f72ac0a81acf7a0f368e20e5d83ee3932a35a +Size (dbench-1.3.tar.gz) = 266746 bytes +SHA1 (patch-aa) = 1c34848d3ce3294a1ae228243ff6fcae8a874826 +SHA1 (patch-ab) = 3d0d79e1542368d63534b994cb96fb0602acca24 diff --git a/benchmarks/dbench/patches/patch-aa b/benchmarks/dbench/patches/patch-aa new file mode 100644 index 00000000000..502dbd713a1 --- /dev/null +++ b/benchmarks/dbench/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/07/17 15:11:44 agc Exp $ + +--- child.c 2003/07/17 14:48:57 1.1 ++++ child.c 2003/07/17 14:51:22 +@@ -29,16 +29,18 @@ + + int line_count=0; + +-char *client_filename = "client.txt"; ++char *client_filename = PREFIX "/share/dbench/" "client.txt"; + + + static int sigsegv(int sig) + { + char line[200]; + printf("segv at line %d\n", line_count); ++#ifdef __linux__ + sprintf(line, "/usr/X11R6/bin/xterm -e gdb /proc/%d/exe %d", + getpid(), getpid()); + system(line); ++#endif + exit(1); + } + diff --git a/benchmarks/dbench/patches/patch-ab b/benchmarks/dbench/patches/patch-ab new file mode 100644 index 00000000000..e09c87be217 --- /dev/null +++ b/benchmarks/dbench/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/07/17 15:11:44 agc Exp $ + +--- Makefile 2003/07/17 14:51:51 1.1 ++++ Makefile 2003/07/17 14:52:17 +@@ -2,7 +2,7 @@ + + CC = gcc + CFLAGS = -O2 -Wall +-CPPFLAGS = "-DVERSION=\"$(VERSION)\"" ++CPPFLAGS = "-DVERSION=\"$(VERSION)\"" -DPREFIX='"${PREFIX}"' + + DB_OBJS = fileio.o util.o dbench.o child.o + TB_OBJS = sockio.o util.o dbench.o child.o socklib.o |