1 Sep 2006 11:46
Re: AoE vs iSCSI
Sam Hopkins wrote:
>
> You're performing two different tests here: a single file dd using a
> large block size and a multi file cat using an unknown blocksize.
> Comparing the two for throughput is only marginally useful. Your
> writes are likely faster than your reads due to filesystem caching.
>
Do you think that this script should be better? It is doing the same
thing transferring 1000 files of 1MB, 100 files of 10MB, 10 of 100MB and
one file of 1GB.
------------------------------------------------------
#!/bin/sh
# Usage: throughput.sh <destination>
dd_test() {
k=0
echo
echo "Writing ${2}MB file..."
let "LIMIT = 1000/$2"
while [ "$k" -lt $LIMIT ]; do
#echo "$k Writing 1000MB file"
dd if=/dev/zero of=$1/${2}MB_file_$k count=$2 bs=1M &> /dev/null
let "k += 1"
done
}
for SIZE in 1 10 100; do
time dd_test $1 $SIZE
done
(Continue reading)
RSS Feed