IBM's Journaled File System (JFS) for Linux Team members Dave Kleikamp shaggy@austin.ibm.com Dave Blaschke blaschke@us.ibm.com Steve Best sbest@us.ibm.com Barry Arndt barndt@us.ibm.com Changes: new document 5/29/2002 add new test case createfiles.tar.gz 6/6/2002 Testing is a large part of file system development. Here is one test case that we run before we ship a release of JFS. Here is one set of JFS test cases, it takes between 24 - 48 hours of these tests to complete depending of the machine that they are run on. I've imbedded the testjfs.sh script. It is setup to be ran in sub dir /jfs/test/ the tests which are in the jfstestcases.tar.gz should be also untarred in the /jfs/test/ sub dir. tar zxvf jfstestcases.tar.gz jfstestcases.tar.gz is available from JFS web page at url. http://oss.software.ibm.com/developer/opensource/jfs/project/pub/jfstestcases.tar.gz One of the tests created 3G file, so the JFS partition should be at least 8G in size. the script to the run the test cases is below. It is also in the jfstestcases.tar.gz file. part of this test uses two open source performance benchmarks which are dbench and iozone. the jfstestcases.tar.gz file doesn't include these benchmarks, the user of this test case must download these two programs from the web sites listed in the script. iozone3_98.tar and dbench-1.2.tar.gz must be downloaded before this test is started. to start this test type the following ./testjfs.sh # date # fs_perms check file system permission # License GPL # With the parameters below the test takes less than minute cd /jfs/test/fs_perm make clean make ./simpletest.sh date # lftest create a file increments of 1MB # With the parameters below the test takes 20 minutes cd /jfs/test/fs_write make clean make ./lftest 3000 # # fs_inod File System stress - inode allocation/deallocation # License GPL # ./fs_inod [volumename] [numsubdirectories] [numfiles] [numloops] # With the parameters below the test takes about 56 minutes cd /jfs/test/fs_inod date ./fs_inod /jfs/test/fs_inod 100 200 10 date # # pfrag Creates a fragmented drive partition # License GPL # Also need the file named pfragfiller # ./pfrag [volumename] [pfragdir] [numsubdirectories] [numfiles] # With the parameters below the test takes about 8 hours mkdir /jfs/test/pfragdir cd /jfs/test/pfrag ./pfrag /jfs/test /jfs/test/pfragdir 1000 1000 rm -rf /jfs/test/pfragdir date # stress - Creates two sub dirs a b with files in them and then symbolic links file from a b # License GPL # with the parameters in the script the test takes about 2 hours cd /jfs/test/stress #./stress.sh date # IoZone performance bench mark #http://www.iozone.org #License GPL #run iozne with parameters -a -b 10 times # download the stable tarball named iozone3_98.tar and # place it into /jfs/test/ dir. # with the parameters in the script the test takes about x hours cd /jfs/test rm -rf src rm -rf doc tar xvf iozone3_98.tar cd /jfs/test/src/current make clean make linux cp /jfs/test/runiozone.sh . ./runiozone.sh date # dbench performance bench mark #ftp://samba.org/pub/tridge/dbench # download dbench-1.2.tar.gz and place it into /jfs/test/ dir. #License GPL cd /jfs/test rm -rf dbench tar zxvf dbench-1.2.tar.gz cd /jfs/test/dbench make clean make cp /jfs/test/rundbench.sh . ./rundbench.sh Other File System test cases: Linux Test Project at url: http://ltp.sourceforge.net/ File System stress test suite by Hironobu SUZUKI at url: http://h2np.net/tools/fs-bench.tar.gz Create files test has been coded for creating a set of files with a given size. The program returns the amount of the time needed for creating these files. Create files test at url http://oss.software.ibm.com/developer/opensource/jfs/project/pub/createfiles.tar.gz If you have questions about these test cases, please send e-mail to Dave Kleikamp at shaggy@austin.ibm.com