Benchmark Disk
The purpose of this document is to explain how to benchmark Linux disks.
yum -y install iozone fs_mark alias iozone_4k='iozone -R -l 1 -u 1 -r 4k -s 1000m -F ${mount}/iozone/f1' alias iozone_4m='iozone -R -l 1 -u 1 -r 4m -s 1000m -F ${mount}/iozone/f1' alias fs_mark_4k='fs_mark -n 50000 -s 4096 -L 3 -S 2 -D 10000 -N 1000 -d ${mount}/fs_mark -t 10' alias fs_mark_4m='fs_mark -n 100 -s 4194304 -L 3 -S 2 -D 100 -N 100 -d ${mount}/fs_mark -t 10' alias dd_4k='dd count=5000k bs=4K if=/dev/zero of=${mount}/dd/4k' alias dd_4m='dd count=5k bs=4M if=/dev/zero of=${mount}/dd/4m' alias test_clear='rm -rf ${mount}/fs_mark/* ; rm -rf ${mount}/dd/*' mount="/var/jgs/lsi-lp_ext3" mkdir ${mount}/iozone ${mount}/fs_mark ${mount}/dd iozone_4k iozone_4k iozone_4k iozone_4m iozone_4m iozone_4m fs_mark_4k fs_mark_4k fs_mark_4k fs_mark_4m fs_mark_4m fs_mark_4m dd_4k dd_4k dd_4k dd_4m dd_4m dd_4m