fio test 简单查看一些系统的io性能结果
作者:互联网
简单测试的脚本:
echo "本次测试测试128k 16k 8k 1k 的 顺序读写 随机读写性能,每个脚本耗时约30s, 总计耗时大约8min左右完成: " fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=128k -rw=write -size=4g --iodepth=16 >write128k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=128k -rw=read -size=4g --iodepth=16 >read128k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=128k -rw=randwrite -size=4g --iodepth=16 >randwrite128k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=128k -rw=randread -size=4g --iodepth=16 >randread128k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=16k -rw=write -size=4g --iodepth=16 >write16k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=16k -rw=read -size=4g --iodepth=16 >read16k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=16k -rw=randwrite -size=4g --iodepth=16 >randwrite16k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=16k -rw=randread -size=4g --iodepth=16 >randread16k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=8k -rw=write -size=4g --iodepth=16 >write8k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=8k -rw=read -size=4g --iodepth=16 >read8k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=8k -rw=randwrite -size=4g --iodepth=16 >randwrite8k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=8k -rw=randread -size=4g --iodepth=16 >randread8k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=1k -rw=write -size=4g --iodepth=16 >write1k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=1k -rw=read -size=4g --iodepth=16 >read1k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=1k -rw=randwrite -size=4g --iodepth=16 >randwrite1k.txt fio -name=128k -filename=/var/io.speedtest -runtime=30 -direct=1 -bs=1k -rw=randread -size=4g --iodepth=16 >randread1k.txt echo "测试结果为" echo "write128k" sed -n 6p write128k.txt echo "read128k" sed -n 6p read128k.txt echo "randwrite128k" sed -n 6p randwrite128k.txt echo "randread128k" sed -n 6p randread128k.txt echo "write16k" sed -n 6p write16k.txt echo "read16k" sed -n 6p read16k.txt echo "randwrite16k" sed -n 6p randwrite16k.txt echo "randread16k" sed -n 6p randread16k.txt echo "write8k" sed -n 6p write8k.txt echo "read8k" sed -n 6p read8k.txt echo "randwrite8k" sed -n 6p randwrite8k.txt echo "randread8k" sed -n 6p randread8k.txt echo "write1k" sed -n 6p write1k.txt echo "read1k" sed -n 6p read1k.txt echo "randwrite1k" sed -n 6p randwrite1k.txt echo "randread1k" sed -n 6p randread1k.txt
标签:30,echo,io,test,txt,fio,128k 来源: https://www.cnblogs.com/jinanxiaolaohu/p/16414650.html