测试时,不要在磁盘上放重要数据,有数据的话先做快照备份,最好是全新盘测试
测试时,不要在磁盘上放重要数据,有数据的话先做快照备份,最好是全新盘测试
测试时,不要在磁盘上放重要数据,有数据的话先做快照备份,最好是全新盘测试
磁盘压测工具理论上都有损坏文件系统的可能,如果盘里有数据,压测前一定先做快照,压测完毕后回滚快照还原回去,确保不因压测磁盘丢数据。
1、微软推荐diskspd,参考https://cloud.tencent.com/developer/article/1835975
2、开源跨平台工具fio,参考https://cloud.tencent.com/developer/article/1836176 (Windows上优先推荐diskspd,其次fio)
特定场景磁盘压测示例:https://cloud.tencent.com/developer/article/2498227
https://github.com/axboe/fio/releases
https://github.com/microsoft/diskspd/releases
常规命令示例:
#指定128k
diskspd.exe -o32 -b128k -w0 -d120 -Sh -D -L -c10G E:\targetfile\IO10.dat
diskspd.exe -o32 -b128k -w0 -d120 -Sh -D -L -c10G F:\targetfile\IO10.dat
diskspd.exe -o32 -b128k -w0 -d120 -Sh -D -L -c10G G:\targetfile\IO10.dat
diskspd.exe -o32 -b128k -w0 -d120 -Sh -D -L -c10G H:\targetfile\IO10.dat
#指定128k
fio.exe -bs=128k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive1"
fio.exe -bs=128k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive2"
fio.exe -bs=128k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive3"
fio.exe -bs=128k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive4"
#指定256k
diskspd.exe -o32 -b256k -w0 -d120 -Sh -D -L -c10G E:\targetfile\IO10.dat
diskspd.exe -o32 -b256k -w0 -d120 -Sh -D -L -c10G F:\targetfile\IO10.dat
diskspd.exe -o32 -b256k -w0 -d120 -Sh -D -L -c10G G:\targetfile\IO10.dat
diskspd.exe -o32 -b256k -w0 -d120 -Sh -D -L -c10G H:\targetfile\IO10.dat
#指定256k
fio.exe -bs=256k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive1"
fio.exe -bs=256k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive2"
fio.exe -bs=256k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive3"
fio.exe -bs=256k -ioengine=windowsaio -iodepth=32 -numjobs=4 -direct=1 -rw=write -thread -time_based -runtime=120 -refill_buffers -norandommap -randrepeat=0 -group_reporting -name=fio-write-throughput -size=10G -filename="\\.\PhysicalDrive4"
https://fio.readthedocs.io/en/latest/fio_doc.html#binary-packages 这个是fio自己的官网,上面有windows fio的链接。
https://github.com/axboe/fio/releases
或者
https://ci.appveyor.com/project/axboe/fio
如下图,选cygwin的x64或x86,鼠标放上去,右边有个灰色箭头,点进去,然后横排有个Artifacts点一下会看到可执行文件的下载链接
或者
https://bsdio.com/fio/ (更新不如前面2个及时)
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。