DD
function dd_direct () {
setup
dd if=/dev/zero of=/mnt/dest/zero bs=$1 count=$2 oflag=direct
cleanup
}
function dd_nodirect () {
setup
dd if=/dev/zero of=/mnt/dest/zero bs=$1 count=$2
cleanup
}
dd_direct 1M 10000
dd_direct 16M 625
dd_direct 1G 10
dd_nodirect 1M 10000
dd_nodirect 16M 625
dd_nodirect 1G 10
IOZone
function iozone_async () {
setup
iozone -c -e -s 10G -r $1 -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 6 -i 7 -f /mnt/dest/iozone
cleanup
}
function iozone_sync () {
setup
iozone -o -c -e -s 10G -r $1 -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 6 -i 7 -f /mnt/dest/iozone
cleanup
}
iozone_async 1M
iozone_async 4M
iozone_async 8M
iozone_async 16M
iozone_sync 1M
iozone_sync 4M
iozone_sync 8M
iozone_sync 16M
function dd_direct () {
setup
dd if=/dev/zero of=/mnt/dest/zero bs=$1 count=$2 oflag=direct
cleanup
}
function dd_nodirect () {
setup
dd if=/dev/zero of=/mnt/dest/zero bs=$1 count=$2
cleanup
}
dd_direct 1M 10000
dd_direct 16M 625
dd_direct 1G 10
dd_nodirect 1M 10000
dd_nodirect 16M 625
dd_nodirect 1G 10
IOZone
function iozone_async () {
setup
iozone -c -e -s 10G -r $1 -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 6 -i 7 -f /mnt/dest/iozone
cleanup
}
function iozone_sync () {
setup
iozone -o -c -e -s 10G -r $1 -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 6 -i 7 -f /mnt/dest/iozone
cleanup
}
iozone_async 1M
iozone_async 4M
iozone_async 8M
iozone_async 16M
iozone_sync 1M
iozone_sync 4M
iozone_sync 8M
iozone_sync 16M
留言
張貼留言