summaryrefslogtreecommitdiff
path: root/benchmarks/bonnie
diff options
context:
space:
mode:
authortron <tron>1998-02-26 23:32:16 +0000
committertron <tron>1998-02-26 23:32:16 +0000
commitdefd4ad7b6ed888eae77c239035958792fdccb97 (patch)
tree26d742c23a050c8252596cb1bebe5b3a19b36dae /benchmarks/bonnie
parentfa9a8b2169e0add6ef1effd3735eaa014c96b1c2 (diff)
downloadpkgsrc-defd4ad7b6ed888eae77c239035958792fdccb97.tar.gz
Adapt this package to NetBSD.
Diffstat (limited to 'benchmarks/bonnie')
-rw-r--r--benchmarks/bonnie/Makefile10
-rw-r--r--benchmarks/bonnie/patches/patch-aa168
-rw-r--r--benchmarks/bonnie/patches/patch-ab17
-rw-r--r--benchmarks/bonnie/pkg/PLIST4
4 files changed, 100 insertions, 99 deletions
diff --git a/benchmarks/bonnie/Makefile b/benchmarks/bonnie/Makefile
index 2857769ba60..a25b42d52f1 100644
--- a/benchmarks/bonnie/Makefile
+++ b/benchmarks/bonnie/Makefile
@@ -3,6 +3,7 @@
# Date created: 26 September 1994
# Whom: se
#
+# $NetBSD: Makefile,v 1.2 1998/02/26 23:32:16 tron Exp $
# $FreeBSD Id: Makefile,v 1.5 1997/11/26 23:09:14 jseger Exp
#
@@ -14,8 +15,15 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= se@FreeBSD.org
+NO_CONFIGURE= yes
+
+CAT1= bonnie.0
MAN1= bonnie.1
-CFLAGS+= -static
+# Kludge until "bsd.port.mk" gets fixed.
+MANCOMPRESSED= 1
+
+post-extract:
+ ${MV} ${WRKSRC}/Bonnie.c ${WRKSRC}/bonnie.c
.include <bsd.port.mk>
diff --git a/benchmarks/bonnie/patches/patch-aa b/benchmarks/bonnie/patches/patch-aa
index 7d4e7e90089..5bb9b85f51b 100644
--- a/benchmarks/bonnie/patches/patch-aa
+++ b/benchmarks/bonnie/patches/patch-aa
@@ -1,97 +1,71 @@
-diff -C2 Makefile~ Makefile
-*** Makefile~ Wed Aug 21 17:19:11 1991
---- Makefile Thu May 18 20:27:19 1995
-***************
-*** 1,7 ****
-
-! CC = cc
-! CFLAGS = -O2
-
-! all: Bonnie
-!
-! Bonnie:
---- 1,10 ----
-+ all: bonnie
-
-! bonnie:
-! $(CC) $(CFLAGS) -static -o bonnie Bonnie.c
-
-! install:
-! -@mkdir -p ${PREFIX}/bin
-! -@mkdir -p ${PREFIX}/man/man1
-! ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bonnie ${PREFIX}/bin
-! ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 bonnie.1 ${PREFIX}/man/man1
-diff -C2 /dev/null bonnie.1
-*** /dev/null Thu May 18 20:25:21 1995
---- bonnie.1 Thu May 18 20:26:47 1995
-***************
-*** 0 ****
---- 1,68 ----
-+ .\" The following requests are required for all man pages.
-+ .Dd May 18, 1995
-+ .Os UNIX
-+ .Dt BONNIE 1
-+ .Sh NAME
-+ .Nm bonnie
-+ .Nd Performance Test of Filesystem I/O
-+ .Sh SYNOPSIS
-+ .Nm bonnie
-+ .Op Fl d Ar scratch-dir
-+ .Op Fl s Ar size-in-MB
-+ .Op Fl m Ar machine-label
-+
-+ .Sh DESCRIPTION
-+ .Nm Bonnie
-+ tests the speed of file I/O from standard C library calls.
-+ It reads and writes 8KB blocks to find the maximum sustained
-+ data rate (usually limited by the drive or controller) and additionally
-+ rewrites the file (better simulating normal operating conditions and
-+ quite dependent on drive and OS optimisations).
-+
-+ The per character read and write tests are generally limited by CPU speed
-+ only on current generation hardware. It takes some 35 SPECint92 to read
-+ or write a file at a rate of 1MB/s using getc() and putc().
-+
-+ The seek test results depend on the buffer cache size, since the fraction
-+ of disk blocks that fits into the buffer cache will be found without any
-+ disk operation and will contribute zero seek time samples.
-+ (See
-+ .Sx BUGS
-+ below.)
-+
-+ .Sh OPTIONS
-+ .Bl -tag -width indent
-+ .It Fl d Ar scratch-dir
-+ Specify the directory where the test file gets written. The default
-+ is the current directory. Make sure there is sufficient free space
-+ available on the partition this directory resides in.
-+ .It Fl s Ar size-in-MB
-+ Specify the size of the test file in MByte. This much space must be
-+ available for the tests to complete.
-+ .It Fl m Ar machine-label
-+ Specify a label to be written in the first column of the result table.
-+ .El
-+
-+ .Sh SEE ALSO
-+ .Xr iozone 1 ,
-+ .Xr iostat 8
-+
-+ .Sh AUTHOR
-+ .Nm Bonnie
-+ was written by Tim Bray <tbray@watsol.waterloo.edu>.
-+
-+ .Sh BUGS
-+ .Nm Bonnie
-+ tries hard to measure disk performance and not the quality of the
-+ buffer cache implementation. In merged buffer caches common today,
-+ the buffer cache size is often only limited by total RAM on an otherwise
-+ unloaded system. Be sure to use a file at least twice at large as
-+ available RAM to protect against artificially high results.
-+
-+ There is no way to keep the buffer cache from increasing the reported
-+ seek rate. This is because the fraction of accesses corresponding to the
-+ amount of the file cached, will be done without seeks.
-+ If your buffer cache is half the size of the file used, then half the
-+ requests will be satisfied immediately, and and the seek rate printed
-+ will be twice the actual value.
-+
+--- bonnie.1.orig Thu Feb 26 23:50:18 1998
++++ bonnie.1 Thu Feb 26 23:50:18 1998
+@@ -0,0 +1,68 @@
++.\" The following requests are required for all man pages.
++.Dd May 18, 1995
++.Os UNIX
++.Dt BONNIE 1
++.Sh NAME
++.Nm bonnie
++.Nd Performance Test of Filesystem I/O
++.Sh SYNOPSIS
++.Nm bonnie
++.Op Fl d Ar scratch-dir
++.Op Fl s Ar size-in-MB
++.Op Fl m Ar machine-label
++
++.Sh DESCRIPTION
++.Nm Bonnie
++tests the speed of file I/O from standard C library calls.
++It reads and writes 8KB blocks to find the maximum sustained
++data rate (usually limited by the drive or controller) and additionally
++rewrites the file (better simulating normal operating conditions and
++quite dependent on drive and OS optimisations).
++
++The per character read and write tests are generally limited by CPU speed
++only on current generation hardware. It takes some 35 SPECint92 to read
++or write a file at a rate of 1MB/s using getc() and putc().
++
++The seek test results depend on the buffer cache size, since the fraction
++of disk blocks that fits into the buffer cache will be found without any
++disk operation and will contribute zero seek time samples.
++(See
++.Sx BUGS
++below.)
++
++.Sh OPTIONS
++.Bl -tag -width indent
++.It Fl d Ar scratch-dir
++Specify the directory where the test file gets written. The default
++is the current directory. Make sure there is sufficient free space
++available on the partition this directory resides in.
++.It Fl s Ar size-in-MB
++Specify the size of the test file in MByte. This much space must be
++available for the tests to complete.
++.It Fl m Ar machine-label
++Specify a label to be written in the first column of the result table.
++.El
++
++.Sh SEE ALSO
++.Xr iozone 1 ,
++.Xr iostat 8
++
++.Sh AUTHOR
++.Nm Bonnie
++was written by Tim Bray <tbray@watsol.waterloo.edu>.
++
++.Sh BUGS
++.Nm Bonnie
++tries hard to measure disk performance and not the quality of the
++buffer cache implementation. In merged buffer caches common today,
++the buffer cache size is often only limited by total RAM on an otherwise
++unloaded system. Be sure to use a file at least twice at large as
++available RAM to protect against artificially high results.
++
++There is no way to keep the buffer cache from increasing the reported
++seek rate. This is because the fraction of accesses corresponding to the
++amount of the file cached, will be done without seeks.
++If your buffer cache is half the size of the file used, then half the
++requests will be satisfied immediately, and and the seek rate printed
++will be twice the actual value.
++
diff --git a/benchmarks/bonnie/patches/patch-ab b/benchmarks/bonnie/patches/patch-ab
new file mode 100644
index 00000000000..2b02a6c10f0
--- /dev/null
+++ b/benchmarks/bonnie/patches/patch-ab
@@ -0,0 +1,17 @@
+--- Makefile.orig Wed Aug 21 17:19:11 1991
++++ Makefile Fri Feb 27 00:26:29 1998
+@@ -1,7 +1,10 @@
+
+-CC = cc
+-CFLAGS = -O2
++PROG= bonnie
+
+-all: Bonnie
++BINDIR=${PREFIX}/bin
++MANDIR=${PREFIX}/man
+
+-Bonnie:
++# Kludge until "bsd.port.mk" gets fixed.
++MANZ=1
++
++.include <bsd.prog.mk>
diff --git a/benchmarks/bonnie/pkg/PLIST b/benchmarks/bonnie/pkg/PLIST
index 09f5c14be64..19f4043f1db 100644
--- a/benchmarks/bonnie/pkg/PLIST
+++ b/benchmarks/bonnie/pkg/PLIST
@@ -1,2 +1,4 @@
+@comment $NetBSD: PLIST,v 1.2 1998/02/26 23:32:17 tron Exp $
bin/bonnie
-man/man1/bonnie.1.gz
+man/cat1/bonnie.0
+man/man1/bonnie.1