home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume26
/
lmdd
/
ddperf
next >
Wrap
Text File
|
1992-06-12
|
371b
|
35 lines
#!/bin/sh
#
# usage: ddperf mount_point
#
# test FSR, FSW
#
doit()
{
umount $D
mount $D
$*
}
if [ X$1 != X ]
then D=$1
else D=/home
fi
if [ X$2 != X ]
then C=$2
else C=1k
fi
echo WRITES
for i in 1 2 3 4
do
lmdd if=internal of=$D/XXX count=$C rusage=1 fsync=1
done
echo READS
for i in 1 2 3 4
do
doit lmdd of=internal if=$D/XXX count=$C rusage=1 fsync=1
done