#!/bin/sh uname -r echo echo "decompressing kernel from /tmp/linux-2.4.4.tar.bz2..." tar xjf /tmp/linux-2.4.4.tar.bz2 echo "performing kernel copy test (5 times)..." time for i in 1 2 3 4 5; do cp -ab linux/ linux-$i; sync; done; cd linux find > ../filelist cd .. echo "performing kernel cat test (5 kernel trees)..." time for file in `cat filelist`; do for i in 1 2 3 4 5; do cat linux-$i/$file> /dev/null 2>&1; done; done; rm filelist echo "performing kernel rm -rf test (6 kernel trees)..." time rm -rf linux* echo "getting cd-image..." cat /dev/scsi/host0/bus0/target4/lun0/cd > test-cd ls -la test-cd echo "doing copy test (5 times)..." time for i in 1 2 3 4 5; do cp test-cd test-cd-$i; sync; done echo "md5sums:" md5sum test-cd* echo "doing cat test of one cd image..." time for i in test-cd; do cat $i > /dev/null ; done echo "doing rm test with all cd images..." time rm test-cd* chown -R alain.alain . chmod -R 755 . echo "BONNIE TESTS" su -c "/usr/sbin/bonnie++ -x 5 -s 1024" alain