磁盘 IO 读写测试

[root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=read -ioengine=psync -bs=16k -size=10G -numjobs=10 -runtime=100 -group_reporting -name=mytest
进行随机写入测试:

[root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=psync -bs=16k -size=200G -numjobs=30 -runtime=1000 -group_reporting -name=mytest
进行顺序写入测试:

[root@linuxcool ~]# fio -filename=linuxcool -direct=1 -iodepth 1 -thread -rw=write -ioengine=psync -bs=16k -size=200G -numjobs=30 -runtime=1000 -group_reporting -name=mytest

ref: http://linuxcommand.p2hp.com/fio

other:
https://www.modb.pro/db/427474

posted @ 2023-02-18 12:01  stdpain  阅读(36)  评论(0编辑  收藏  举报