linux测试磁盘读写性能

本文详细介绍了在Linux和Windows系统中使用dd和fio命令进行文件系统性能测试,包括时延、IOPS和吞吐量的测量方法。
摘要由CSDN通过智能技术生成

linux

dd测试命令

dd if=/dev/zero of=test bs=32k count=100k oflag=dsync

fio测试命令

一、Linux系统:
创建测试文件:dd if=/dev/sdb1 of=/dmdata/test.big bs=4k count=524288
时延:
fio --filename=/dmdata/test.big --ioengine=libaio --rw=randread  --bs=4k --size=40G --iodepth=1  --numjobs=1 --direct=1 --name=4klat_randread   --group_reporting --runtime=120
fio --filename=/dmdata/test.big --ioengine=libaio --rw=randwrite --bs=4k --size=40G --iodepth=1  --numjobs=1 --direct=1 --name=4klat_randwrite  --group_reporting --runtime=120

IOPS:
fio --filename=/dmdata/test.big --ioengine=libaio --rw=randread  --bs=4k --size=40G --iodepth=64 --numjobs=4 --direct=1 --name=4kiops_randread  --group_reporting --runtime=120 
fio --filename=/dmdata/test.big --ioengine=libaio --rw=randwrite --bs=4k --size=40G --iodepth=64 --numjobs=4 --direct=1 --name=4kiops_randwrite --group_reporting --runtime=120

吞吐量:
fio --filename=/dmdata/test.big --ioengine=libaio --rw=randread  --bs=4M --size=40G --iodepth=64 --numjobs=1 --direct=1 --name=4kio_randread    --group_reporting --runtime=120
fio --filename=/dmdata/test.big --ioengine=libaio --rw=randwrite --bs=4M --size=40G --iodepth=64 --numjobs=1 --direct=1 --name=4kio_randwrite   --group_reporting --runtime=120



二、windows系统:
时延:
fio --filename=改成待测试文件路径+名称 --ioengine=windowsaio --rw=randread  --bs=4k --size=10G --iodepth=1  --numjobs=1 --direct=1 --name=4klat_randread   --group_reporting --runtime=120
fio --filename=改成待测试文件路径+名称 --ioengine=windowsaio --rw=randwrite --bs=4k --size=10G --iodepth=1  --numjobs=1 --direct=1 --name=4klat_randwrite  --group_reporting --runtime=120

IOPS:
fio --filename=改成待测试文件路径+名称 --ioengine=windowsaio --rw=randread  --bs=4k --size=10G --iodepth=64 --numjobs=4 --direct=1 --name=4kiops_randread  --group_reporting --runtime=120 
fio --filename=改成待测试文件路径+名称 --ioengine=windowsaio --rw=randwrite --bs=4k --size=10G --iodepth=64 --numjobs=4 --direct=1 --name=4kiops_randwrite --group_reporting --runtime=120

吞吐量:
fio --filename=改成待测试文件路径+名称 --ioengine=windowsaio --rw=randread  --bs=4M --size=10G --iodepth=64 --numjobs=1 --direct=1 --name=4kio_randread    --group_reporting --runtime=120
fio --filename=改成待测试文件路径+名称 --ioengine=windowsaio --rw=randwrite --bs=4M --size=10G --iodepth=64 --numjobs=1 --direct=1 --name=4kio_randwrite   --group_reporting --runtime=120


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值