rpms/iozone/devel iozone-gnplot-fixup.patch, NONE, 1.1 iozone-optimization-reduction.patch, NONE, 1.1 iozone.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Neil Horman (nhorman) fedora-extras-commits at redhat.com
Fri May 27 16:55:45 UTC 2005


Author: nhorman

Update of /cvs/extras/rpms/iozone/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23166/devel

Modified Files:
	.cvsignore sources 
Added Files:
	iozone-gnplot-fixup.patch iozone-optimization-reduction.patch 
	iozone.spec 
Log Message:
auto-import iozone-3-1 on branch devel from iozone-3-1.src.rpm
initial iozone import

iozone-gnplot-fixup.patch:

--- NEW FILE iozone-gnplot-fixup.patch ---
--- iozone3_239/src/current/gnu3d.dem.orig	2005-04-22 17:09:55.000000000 -0400
+++ iozone3_239/src/current/gnu3d.dem	2005-05-20 14:35:22.272939963 -0400
@@ -37,7 +37,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -58,7 +58,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -80,7 +80,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -101,7 +101,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -122,7 +122,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -143,7 +143,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -164,7 +164,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -185,7 +185,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -206,7 +206,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -227,7 +227,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -248,7 +248,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
@@ -269,7 +269,7 @@ set ytics
 set logscale x 2
 set logscale y 2
 set autoscale z
-set xrange [5:24]
+#set xrange [5:24]
 set xlabel "File size in 2^n KBytes"
 set ylabel "Record size in 2^n Kbytes"
 set zlabel "Kbytes/sec"
--- iozone3_239/src/current/Generate_Graphs.orig	2005-04-22 17:09:55.000000000 -0400
+++ iozone3_239/src/current/Generate_Graphs	2005-05-20 14:35:32.281586460 -0400
@@ -1,3 +1,4 @@
+#!/bin/sh
 #
 # This script will create the Iozone graphs using
 # gnuplot. 
@@ -12,21 +13,21 @@
 
 # Generate data base for all of the operation types.
 
-./gengnuplot.sh $1 write
-./gengnuplot.sh $1 rewrite
-./gengnuplot.sh $1 read
-./gengnuplot.sh $1 reread
-./gengnuplot.sh $1 randread
-./gengnuplot.sh $1 randwrite
-./gengnuplot.sh $1 bkwdread
-./gengnuplot.sh $1 recrewrite
-./gengnuplot.sh $1 strideread
-./gengnuplot.sh $1 fwrite
-./gengnuplot.sh $1 frewrite
-./gengnuplot.sh $1 fread
-./gengnuplot.sh $1 freread
+gengnuplot.sh $1 write
+gengnuplot.sh $1 rewrite
+gengnuplot.sh $1 read
+gengnuplot.sh $1 reread
+gengnuplot.sh $1 randread
+gengnuplot.sh $1 randwrite
+gengnuplot.sh $1 bkwdread
+gengnuplot.sh $1 recrewrite
+gengnuplot.sh $1 strideread
+gengnuplot.sh $1 fwrite
+gengnuplot.sh $1 frewrite
+gengnuplot.sh $1 fread
+gengnuplot.sh $1 freread
 
 # Produce graphs and postscript results.
-gnuplot gnu3d.dem
+gnuplot /usr/share/iozone/gnu3d.dem
 
 

iozone-optimization-reduction.patch:

--- NEW FILE iozone-optimization-reduction.patch ---
--- iozone3_239/src/current/makefile.orig	2005-04-22 17:09:54.000000000 -0400
+++ iozone3_239/src/current/makefile	2005-05-27 11:36:39.000000000 -0400
@@ -14,7 +14,7 @@ C89	= c89
 GCC	= gcc
 CCS	= /usr/ccs/bin/cc
 NACC	= /opt/ansic/bin/cc
-CFLAGS	=
+CFLAGS	= $(RPM_OPT_FLAGS)
 
 all:  
 	@echo ""
@@ -149,42 +149,42 @@ hpux_no_ansi:	iozone_hpux_no.o  libbif.o
 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 
 #
 linux:	iozone_linux.o libasync.o libbif.o fileop_linux.o
-	$(CC)  -O3 $(LDFLAGS) iozone_linux.o libasync.o libbif.o -lpthread \
+	$(CC)  -O2 $(LDFLAGS) iozone_linux.o libasync.o libbif.o -lpthread \
 		-lrt -o iozone
-	$(CC)  -O3 -Dlinux fileop_linux.o -o fileop
+	$(CC)  -O2 -Dlinux fileop_linux.o -o fileop
 
 #
 # GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O 
 #
 linux-powerpc: iozone_linux-powerpc.o  libbif.o libasync.o
-	$(CC) -O3 $(LDFLAGS) iozone_linux-powerpc.o libasync.o \
+	$(CC) -O2 $(LDFLAGS) iozone_linux-powerpc.o libasync.o \
 		libbif.o -lpthread  -lrt -o iozone
 #
 # GNU 'C' compiler Linux build for sparc chip with threads, largefiles, async I/O 
 #
 linux-sparc: iozone_linux-sparc.o  libbif.o libasync.o
-	$(CC) -O3 $(LDFLAGS) iozone_linux-sparc.o libasync.o libbif.o \
+	$(CC) -O2 $(LDFLAGS) iozone_linux-sparc.o libasync.o libbif.o \
 		-lpthread -lrt -o iozone
 
 #
 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 
 #
 linux-ia64:	iozone_linux-ia64.o  libbif.o libasync.o
-	$(CC) -O3 $(LDFLAGS) iozone_linux-ia64.o libbif.o libasync.o \
+	$(CC) -O2 $(LDFLAGS) iozone_linux-ia64.o libbif.o libasync.o \
 		-lrt -lpthread -o iozone
 
 #
 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
 #
 linux-arm:	iozone_linux-arm.o  libbif.o libasync.o
-	$(CC) -O3 $(LDFLAGS) iozone_linux-arm.o libbif.o libasync.o \
+	$(CC) -O2 $(LDFLAGS) iozone_linux-arm.o libbif.o libasync.o \
 		-lrt -lpthread -o iozone
 
 #
 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 
 #
 linux-AMD64:	iozone_linux-AMD64.o  libbif.o libasync.o
-	$(CC)  -O3 $(LDFLAGS) iozone_linux-AMD64.o libbif.o libasync.o \
+	$(CC)  -O2 $(LDFLAGS) iozone_linux-AMD64.o libbif.o libasync.o \
 		-lrt -lpthread -o iozone
 
 #
@@ -563,104 +563,104 @@ iozone_linux-powerpc.o:	iozone.c libbif.
 	@echo ""
 	@echo "Building iozone for Linux PowerPC"
 	@echo ""
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DDONT_HAVE_O_DIRECT \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DDONT_HAVE_O_DIRECT \
 		-DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
 		-DNAME='"linux-powerpc"' -o iozone_linux-powerpc.o
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
 		-DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c  -o libasync.o 
 
 iozone_linux-sparc.o:	iozone.c libbif.c libasync.c
 	@echo ""
 	@echo "Building iozone for Linux Sparc"
 	@echo ""
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DDONT_HAVE_O_DIRECT \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DDONT_HAVE_O_DIRECT \
 		-DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
 		-DNAME='"linux-sparc"' -o iozone_linux-sparc.o
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
 		-DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c  -o libasync.o 
 
 iozone_linux.o:	iozone.c libbif.c libasync.c
 	@echo ""
 	@echo "Building iozone for Linux"
 	@echo ""
-	$(CC) -Wall -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
+	$(CC) -Wall -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
 		-DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
 		-DNAME='"linux"' -o iozone_linux.o
-	$(CC) -Wall -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
+	$(CC) -Wall -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
 		-DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -Wall -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -Wall -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c  -o libasync.o 
 
 fileop_linux.o:	fileop.c
 	@echo ""
 	@echo "Building fileop for Linux"
 	@echo ""
-	$(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux.o
+	$(CC) -Wall -c -O2 $(CFLAGS) fileop.c -o fileop_linux.o
 
 iozone_linux-ia64.o:	iozone.c libbif.c libasync.c
 	@echo ""
 	@echo "Building iozone for Linux-ia64"
 	@echo ""
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DNAME='"linux-ia64"' \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DNAME='"linux-ia64"' \
 		-DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
 		-o iozone_linux-ia64.o
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
 		-DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c  -o libasync.o 
 
 iozone_linux-arm.o:	iozone.c libbif.c libasync.c
 	@echo ""
 	@echo "Building iozone for Linux-arm"
 	@echo ""
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
 		-DNAME='"linux-arm"' -DLINUX_ARM -DSHARED_MEM \
 		-Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
 		-o iozone_linux-arm.o
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
 		-DSHARED_MEM -DZBIG_ENDIAN2 -Dlinux $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c  -o libasync.o
 
 iozone_linux-AMD64.o:	iozone.c libbif.c libasync.c
 	@echo ""
 	@echo "Building iozone for Linux-AMD64"
 	@echo ""
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DNAME='"linux-AMD64"' \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DNAME='"linux-AMD64"' \
 		-D__AMD64__ -DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE \
 		$(CFLAGS) iozone.c \
 		-o iozone_linux-AMD64.o
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
 		-DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c  -o libasync.o 
 
 iozone_linux-s390.o:	iozone.c libbif.c libasync.c
 	@echo ""
 	@echo "Building iozone for Linux-s390"
 	@echo ""
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
 		-DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
 		-DNAME='"linux-s390"' -o iozone_linux-s390.o
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DSHARED_MEM -Dlinux \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DSHARED_MEM -Dlinux \
 		-DZBIG_ENDIAN -D_LARGEFILE64_SOURCE $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c -o libasync.o
 
 iozone_linux-s390x.o:	iozone.c libbif.c libasync.c
 	@echo ""
 	@echo "Building iozone for Linux-s390x"
 	@echo ""
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
 		-DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
 		-DNAME='"linux-s390x"' -o iozone_linux-s390x.o
-	$(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DSHARED_MEM -Dlinux \
+	$(CC) -c -O2 -Dunix -DHAVE_ANSIC_C -DSHARED_MEM -Dlinux \
 		-DZBIG_ENDIAN -D_LARGEFILE64_SOURCE $(CFLAGS) libbif.c -o libbif.o
-	$(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+	$(CC) -c -O2 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
 		-D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c -o libasync.o
 
 


--- NEW FILE iozone.spec ---
Summary: Filesystem benchmarking utility
Name: iozone
Version: 3
Release: 1 
License: Freeware
Group: Applications/Engineering
URL:	http://www.iozone.org
Source: http://www.iozone.org/src/current/%{name}%{version}_239.tar
Buildroot: %{_tmppath}/%{name}%{version}_239-root-%(%{__id_u} -n) 
Requires: gnuplot

Patch0: iozone-gnplot-fixup.patch
Patch1: iozone-optimization-reduction.patch

%description
IOzone is a filesystem benchmark tool. The benchmark generates and 
measures a variety of file operations. Iozone has been ported to 
many machines and runs under many operating systems.

Iozone is useful for performing a broad filesystem analysis of a vendors
computer platform. The benchmark tests file I/O performance for the following
operations: Read, write, re-read, re-write, read backwards, read strided,
fread, fwrite, random read, pread ,mmap, aio_read, aio_write.


%prep

%setup -n iozone3_239 
%patch0 -p1
%patch1 -p1 

%build
cd src/current
make linux
cd ../..

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/usr/share/iozone
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1

install -p src/current/iozone $RPM_BUILD_ROOT/%{_bindir}
install -p src/current/Generate_Graphs $RPM_BUILD_ROOT/%{_bindir}
install -p src/current/gengnuplot.sh $RPM_BUILD_ROOT/%{_bindir}
install -p -m 644 src/current/gnu3d.dem $RPM_BUILD_ROOT/usr/share/iozone
install -p -m 644 docs/iozone.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
chmod 644 docs/IOzone_msword_98.pdf
chmod 644 docs/Run_rules.doc
chmod 644 src/current/Gnuplot.txt

%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_mandir}/man1/*
%doc docs/IOzone_msword_98.pdf
%doc docs/Run_rules.doc
%doc src/current/Gnuplot.txt
/usr/share/iozone/


%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Tue May 27 2005 Neil Horman <nhorman at redhat.com>
- cleaned up spec file
- packaged for Fedora Extras



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/iozone/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	27 May 2005 16:50:08 -0000	1.1
+++ .cvsignore	27 May 2005 16:55:43 -0000	1.2
@@ -0,0 +1 @@
+iozone3_239.tar


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/iozone/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	27 May 2005 16:50:08 -0000	1.1
+++ sources	27 May 2005 16:55:43 -0000	1.2
@@ -0,0 +1 @@
+fd0c2cfeb8a0580d4498af80ef76fa4b  iozone3_239.tar




More information about the fedora-extras-commits mailing list