Windows 磁盘部分性能数据获取


摘要

  1. 每次晚上加班总有收获
  2. 这次发现了一个fio for windows版本的压测程序, 准备学习和使用一下.
  3. https://github.com/axboe/fio/releases

安装

  1. exe 的正常安装不用都说直接使用就可以了.
  2. 注意我这变使用的是 x64版本的.

测试脚本

  1. fio -name=128k -filename=c:\io.speedtest -runtime=30 -direct=1 -bs=128k -rw=write -size=4g --iodepth=16 --thread
  2. fio -name=8k -filename=c:\io.speedtest -runtime=30 -direct=1 -bs=8k -rw=randwrite -size=4g --iodepth=16 --thread
  3. fio -name=8krw -filename=c:\io.speedtest -runtime=30 -direct=1 -bs=8k -rw=randrw -rwmixread=70 -size=4g --iodepth=16 --thread
  4. fio -name=8kread -filename=c:\io.speedtest -runtime=30 -direct=1 -bs=8k -rw=read -size=4g --iodepth=16 --thread
  5. 注意不同的测试脚本分别对应测试:
  6. 128KB顺序写
  7. 8K 随机写
  8. 8K 随机读写,并且70%的读操作, 这个是数据库常用的个处理
  9. 8K 顺序读 一般这个会到协议的顶峰. 如果这个到不了就可以改成128KB 的区块大小
  10. 需要注意. windows 平台不支持 多线程测试, 这里是需要注意的.
  11. IOPS和带宽数值越大越好. 太低的数值, 会带来一些问题.
  12. 注意实际测试中最好加大runtime时间和文件大小最好能够击穿raid卡的缓存或者是磁盘缓存 这样测试结果才是正确的.

自己笔记本的测试结果

  1. C:\Users\zhaobsh>fio -name=128k -filename=c:\io.speedtest -runtime=30 -direct=1 -bs=128k -rw=write -size=4g --iodepth=16
  2. fio: this platform does not support process shared mutexes, forcing use of threads. Use the 'thread' option to get rid of this warning.
  3. 128k: (g=0): rw=write, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB, ioengine=windowsaio, iodepth=16
  4. fio-3.34
  5. Starting 1 thread
  6. 128k: Laying out IO files (2 files / total 4096MiB)
  7. Jobs: 1 (f=2): [W(1)][100.0%][w=110MiB/s][w=882 IOPS][eta 00m:00s]
  8. 128k: (groupid=0, jobs=1): err= 0: pid=27928: Mon Mar 20 23:37:12 2023
  9. write: IOPS=1036, BW=130MiB/s (136MB/s)(3886MiB/30001msec); 0 zone resets
  10. slat (usec): min=155, max=27079, avg=963.76, stdev=1015.93
  11. clat (nsec): min=608, max=63591k, avg=7544673.60, stdev=5145554.51
  12. lat (usec): min=174, max=63819, avg=8508.44, stdev=5273.46
  13. clat percentiles (nsec):
  14. | 1.00th=[ 1224], 5.00th=[ 522240], 10.00th=[ 1253376],
  15. | 20.00th=[ 2834432], 30.00th=[ 4358144], 40.00th=[ 5603328],
  16. | 50.00th=[ 7045120], 60.00th=[ 8454144], 70.00th=[10027008],
  17. | 80.00th=[11730944], 90.00th=[13697024], 95.00th=[15663104],
  18. | 99.00th=[23461888], 99.50th=[26869760], 99.90th=[34865152],
  19. | 99.95th=[39059456], 99.99th=[54263808]
  20. bw ( KiB/s): min=67840, max=204288, per=100.00%, avg=132981.93, stdev=22042.15, samples=59
  21. iops : min= 530, max= 1596, avg=1038.58, stdev=172.19, samples=59
  22. lat (nsec) : 750=0.10%, 1000=0.51%
  23. lat (usec) : 2=0.95%, 4=0.16%, 10=0.04%, 20=0.02%, 50=0.01%
  24. lat (usec) : 250=0.62%, 500=2.45%, 750=1.79%, 1000=1.63%
  25. lat (msec) : 2=6.30%, 4=13.05%, 10=41.98%, 20=28.56%, 50=1.81%
  26. lat (msec) : 100=0.02%
  27. cpu : usr=0.00%, sys=3.33%, ctx=0, majf=0, minf=0
  28. IO depths : 1=1.8%, 2=13.1%, 4=26.2%, 8=52.4%, 16=6.5%, 32=0.0%, >=64=0.0%
  29. submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
  30. complete : 0=0.0%, 4=93.9%, 8=0.0%, 16=6.1%, 32=0.0%, 64=0.0%, >=64=0.0%
  31. issued rwts: total=0,31084,0,0 short=0,0,0,0 dropped=0,0,0,0
  32. latency : target=0, window=0, percentile=100.00%, depth=16
  33. Run status group 0 (all jobs):
  34. WRITE: bw=130MiB/s (136MB/s), 130MiB/s-130MiB/s (136MB/s-136MB/s), io=3886MiB (4074MB), run=30001-30001msec
  35. C:\Users\zhaobsh>fio -name=128k -filename=d:\io.speedtest -runtime=30 -direct=1 -bs=128k -rw=write -size=4g --iodepth=16 --thread
  36. 128k: (g=0): rw=write, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB, ioengine=windowsaio, iodepth=16
  37. fio-3.34
  38. Starting 1 thread
  39. 128k: Laying out IO files (2 files / total 4096MiB)
  40. Jobs: 1 (f=2): [W(1)][100.0%][w=96.0MiB/s][w=767 IOPS][eta 00m:00s]
  41. 128k: (groupid=0, jobs=1): err= 0: pid=28128: Mon Mar 20 23:38:30 2023
  42. write: IOPS=982, BW=123MiB/s (129MB/s)(3684MiB/30001msec); 0 zone resets
  43. slat (usec): min=159, max=20981, avg=1016.39, stdev=1085.95
  44. clat (nsec): min=529, max=40496k, avg=7963163.20, stdev=5295680.79
  45. lat (usec): min=181, max=42443, avg=8979.55, stdev=5397.27
  46. clat percentiles (nsec):
  47. | 1.00th=[ 1064], 5.00th=[ 489472], 10.00th=[ 1269760],
  48. | 20.00th=[ 2932736], 30.00th=[ 4620288], 40.00th=[ 6062080],
  49. | 50.00th=[ 7438336], 60.00th=[ 8847360], 70.00th=[10420224],
  50. | 80.00th=[12255232], 90.00th=[15138816], 95.00th=[17170432],
  51. | 99.00th=[21626880], 99.50th=[25296896], 99.90th=[31588352],
  52. | 99.95th=[34340864], 99.99th=[37486592]
  53. bw ( KiB/s): min=96830, max=167011, per=100.00%, avg=126208.25, stdev=24663.83, samples=59
  54. iops : min= 756, max= 1304, avg=985.68, stdev=192.63, samples=59
  55. lat (nsec) : 750=0.34%, 1000=0.56%
  56. lat (usec) : 2=0.74%, 4=0.16%, 10=0.03%, 20=0.01%, 50=0.01%
  57. lat (usec) : 250=0.54%, 500=2.68%, 750=1.75%, 1000=1.57%
  58. lat (msec) : 2=5.64%, 4=11.85%, 10=41.36%, 20=30.82%, 50=1.95%
  59. cpu : usr=0.00%, sys=3.33%, ctx=0, majf=0, minf=0
  60. IO depths : 1=1.8%, 2=13.1%, 4=26.2%, 8=52.3%, 16=6.5%, 32=0.0%, >=64=0.0%
  61. submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
  62. complete : 0=0.0%, 4=93.9%, 8=0.0%, 16=6.1%, 32=0.0%, 64=0.0%, >=64=0.0%
  63. issued rwts: total=0,29475,0,0 short=0,0,0,0 dropped=0,0,0,0
  64. latency : target=0, window=0, percentile=100.00%, depth=16
  65. Run status group 0 (all jobs):
  66. WRITE: bw=123MiB/s (129MB/s), 123MiB/s-123MiB/s (129MB/s-129MB/s), io=3684MiB (3863MB), run=30001-30001msec

Windows 磁盘部分性能数据获取的更多相关文章

  1. 磁盘IO性能监控(Linux 和 Windows)

    磁盘IO性能监控(Linux 和 Windows) 作者:终南   <li.zhongnan@hotmail.com> 磁盘的IO性能是衡量计算机总体性能的一个重要指标.Linux提供了i ...

  2. 提高磁盘访问性能 - NtfsDisableLastAccessUpdate

    这个技巧可以提高磁盘访问性能,不过仅适用于NTFS文件系统. 我们知道,当在磁盘管理应用程序中列出目录结构时──效果类似“资源管理器”.“文件管理 器”(Windows NT  3.xx/4.0下的称 ...

  3. Windows Server2008 监控服务器性能

    下面学习Windows Server2008监控服务器性能包括 日志管理,归档日志,日志排错,怎么配置计算机以转发和收集事件,使用任务管理监控内存和CPU的使用,查看程序内存使用,查看程序CPU使用, ...

  4. 双系统Ubuntu无法访问windows磁盘分区解决方法

    为了更好的体验各种操作系统,在电脑中安装双系统是很好的选择,但在使用中难免会遇到这样或那样的问题. 最近总是遇到Ubuntu系统下无法访问windows磁盘分区问题,看了系统日志发现是挂载磁盘出问题了 ...

  5. linux使用windows磁盘,挂载共享目录

    实例说明:客户两台服务器,一台web服务器(linux)只有50G,课程资源太多太大导致磁盘不够用:客户的文档服务器(windows)磁盘很大超过1T,所以产生了,将web资源使用文档服务器磁盘的想法 ...

  6. Linux如何查看与测试磁盘IO性能

    1. 查看磁盘 IO 性能 1.1 top 命令 top 命令通过查看 CPU 的 wa% 值来判断当前磁盘 IO 性能,如果这个数值过大,很可能是磁盘 IO 太高了,当然也可能是其他原因,例如网络 ...

  7. zabbix监控windows磁盘空间

    监控windows磁盘空间,不是百分比. 当windows系统添加相应的windows模板后,会自动生成检测系统空间的监控项,在应用集(Filessystem)里面,Free disk space o ...

  8. windows 磁盘加密

      windows 磁盘加密 CreateTime--2018年4月25日18:37:45 Author:Marydon 以win10为例 选中磁盘-->你会发现上面的管理BitLocker是置 ...

  9. Windows Azure Platform 性能监视器(转载)

    Windows操作系统提供了查看性能监视器的功能,用于监视CPU使用率.内存使用率,硬盘读写速度,网络速度等.您可以在开始-->运行-->输入Perfmon,就可以打开性能监视器. 我们知 ...

  10. cacti监控linux和windows磁盘IO

    cacti监控linux和windows磁盘IO 标签:cacti linux磁盘IO windows磁盘IO 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则 ...

随机推荐

  1. 从5个函数带你理解K8s DeltaFIFO

    摘要:DeltaFIFO是K8s中用来存储处理数据的Queue,相较于传统的FIFO,它不仅仅存储了数据保证了先进先出,而且存储有K8s资源对象的类型.是连接Reflector(生产者)和indexe ...

  2. 华为云GaussDB新产品特性亮相DTC2021,重磅新品开源预告

    摘要:华为云数据库产品部CTO庄乾锋携3位GaussDB技术专家在DTC2021大会上分享了产品最新技术.优秀实践案例,以及透露了重大新品即将开源,以数据驱动业务发展,为企业数字化转型持续注入新动力. ...

  3. Go语言逆向技术:常量字符串

    摘要:Go语言源代码编译成二进制文件后,源代码中的字符串存放在哪里?是如何组织的? 本文分享自华为云社区<go语言逆向技术之---常量字符串解密>,作者:安全技术猿. Go语言源代码编译成 ...

  4. 万字保姆级长文——Linkedin元数据管理平台Datahub离线安装指南

    ​ 元数据管理平台Datahub最近的热度越来越高.已经更新到了0.8.40的版本,来咨询我的小伙伴也越来越多,特别是安装过程有很多问题. ​ 考虑到有些企业部分数据服务是部署在内网的,那么离线安装D ...

  5. 如何优雅的在 Word 中添加漂亮的代码?

    Step 01 第一步,在编程软件里找到你想要放进Word文档里的代码,复制下来. Step 02 第二步,打开Notepad++,将代码直接粘贴. Step 03 第三步,这个时候的代码是没有任何格 ...

  6. AtCoder Beginner Contest 208 A~E个人题解

    比赛链接:Here A - Rolling Dice 水题 一个六面的骰子,请问摇动 \(A\) 次最后的点数和能否为 \(B\) 如果 \(B \in [a,6a]\) 输出 YES C++ voi ...

  7. L3-013 非常弹的球 (30 分) (math)

    刚上高一的森森为了学好物理,买了一个"非常弹"的球.虽然说是非常弹的球,其实也就是一般的弹力球而已.森森玩了一会儿弹力球后突然想到,假如他在地上用力弹球,球最远能弹到多远去呢?他不 ...

  8. Educational Codeforces Round 99 (Rated for Div. 2) (A ~ F)个人题解

    Educational Codeforces Round 99 (Rated for Div. 2) A. Strange Functions 读懂题即可(或者快速看一下样例解释),直接输出字符串长度 ...

  9. 第五届蓝桥杯(2014)C/C++大学A组省赛题解

    第一题.猜年龄 小明带两个妹妹参加元宵灯会.别人问她们多大了,她们调皮地说:"我们俩的年龄之积是年龄之和的6倍".小明又补充说:"她们可不是双胞胎,年龄差肯定也不超过8岁 ...

  10. Spring Boot 2.x :日志框架@Slf4j的使用和logback文件配置

    为什么是SLF4J? 默认情况下,Spring Boot会用SLF4J + Logback来记录日志,并用INFO级别输出到控制台. 怎么使用SLF4J? 如果我们在一个Spring Boot 的程序 ...