fio测试磁盘速度

简介: fio测试磁盘速度

注意

测试 读速度 不加 --readonly

fio 会 先写 文件 再 读取


直接 --readonly 参数 防止 fio 写入 文件

time fio -filename=./test1 -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=psync -bs=1m -size=1G -numjobs=1 -runtime=1000 -group_reporting -name=mytest
time fio -filename=./test1 -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=psync -bs=4k -size=1G -numjobs=16 -runtime=1000 -group_reporting -name=mytest
# 坏块 检查
badblocks -v /dev/sdg3 >  badsectors.txt
# 只测试 读性能并
time fio -filename=./test1 -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=4k -size=1G -numjobs=16 -runtime=1000 -group_reporting -name=mytest
# 只测试 系统盘 性能
 time fio -filename=/dev/sdg -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=4k -size=100M  --readonly -numjobs=16 -runtime=1000 -group_reporting -name=mytest


node02 node03 差异 对比

time fio -filename=/dev/sdc -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=4k -size=100M  --readonly -numjobs=16 -runtime=1000 -group_reporting -name=mytest
mytest: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
...
fio-2.1.10
Starting 16 threads
Jobs: 16 (f=16): [rrrrrrrrrrrrrrrr] [100.0% done] [281.6MB/0KB/0KB /s] [72.8K/0/0 iops] [eta 00m:00s]
mytest: (groupid=0, jobs=16): err= 0: pid=2643050: Fri Aug 20 13:10:16 2021
  read : io=1600.0MB, bw=289931KB/s, iops=72482, runt=  5651msec
    clat (usec): min=37, max=4127, avg=219.13, stdev=91.42
     lat (usec): min=37, max=4127, avg=219.20, stdev=91.42
    clat percentiles (usec):
     |  1.00th=[  143],  5.00th=[  161], 10.00th=[  171], 20.00th=[  185],
     | 30.00th=[  193], 40.00th=[  203], 50.00th=[  211], 60.00th=[  219],
     | 70.00th=[  229], 80.00th=[  243], 90.00th=[  266], 95.00th=[  290],
     | 99.00th=[  354], 99.50th=[  398], 99.90th=[ 1864], 99.95th=[ 2224],
     | 99.99th=[ 3120]
    bw (KB  /s): min=17640, max=18552, per=6.27%, avg=18191.95, stdev=205.40
    lat (usec) : 50=0.01%, 250=83.46%, 500=16.21%, 750=0.06%, 1000=0.05%
    lat (msec) : 2=0.13%, 4=0.08%, 10=0.01%
  cpu          : usr=0.92%, sys=1.80%, ctx=409618, majf=0, minf=16
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued    : total=r=409600/w=0/d=0, short=r=0/w=0/d=0
     latency   : target=0, window=0, percentile=100.00%, depth=1
Run status group 0 (all jobs):
   READ: io=1600.0MB, aggrb=289930KB/s, minb=289930KB/s, maxb=289930KB/s, mint=5651msec, maxt=5651msec
Disk stats (read/write):
  sdb: ios=409594/0, merge=3/0, ticks=88170/0, in_queue=1265, util=98.28%
real    0m6.107s
user    0m0.919s
sys     0m1.663s



64 集群 存储 性能 排查

node3

time fio -filename=/dev/sda -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=4k -size=1M  --readonly -numjobs=16 -runtime=1000 -group_reporting -name=mytest
mytest: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
...
fio-2.1.10
Starting 16 threads
Jobs: 16 (f=16): [rrrrrrrrrrrrrrrr] [0.8% done] [308KB/0KB/0KB /s] [77/0/0 iops] [eta 16m:33s]



相关文章
|
7月前
|
存储 缓存 Linux
百度搜索:蓝易云【如何在Linux系统服务器中测试存储/磁盘I/O性能?】
这些工具可以帮助你测试磁盘的读取和写入性能,并提供各种性能指标和统计数据。请注意,在运行这些测试时,确保没有重要的数据存储在被测试的磁盘上,并谨慎操作以避免对系统和数据造成不必要的影响。
88 0
|
11月前
|
监控 测试技术 Linux
Linux系统I/O测试工具:fio
Linux系统I/O测试工具:fio
491 0
|
12月前
|
固态存储 iOS开发 内存技术
fio测试硬盘速度
–readonly 确保只读,这个选项在生产系统上很有用,不会生成临时文件,读的对象只能是已经存在的,例如设备
339 0
|
Linux iOS开发
Linux Command fio测试磁盘io工具
Linux Command fio测试磁盘io工具
|
iOS开发
D3c14x fio测试
ECS.d3c.14xlarge机型FIO测试
98 0
|
存储 Windows
如何测试写磁盘的速度?
如何测试写磁盘的速度? 1、问题来源:出差的项目中遇到紧急对接问题:测试写磁盘的速度? 对接程序中需要定期向磁盘中存放结果数据,但不知道: 1)以多大的Buffer写入磁盘会速度更快? 2)磁盘的写速度是否能达到磁盘阵列厂商标称的最大值?
167 0
|
数据管理 Windows
如何测试写磁盘的速度?
如何测试写磁盘的速度?
582 0

热门文章

最新文章