zoukankan      html  css  js  c++  java
  • 硬盘读写性能测试工具fio简单使用

    linux debian系统可以直接apt方式安装

    常用的fio命令:

    随机读写、读写混合

    fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/dev/sdb --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75 --runtime=30s

    随机读
    fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/dev/sdb --bs=4k --iodepth=64 --size=4G --readwrite=randread --runtime=30s

    随机写
    fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/dev/sdb --bs=4k --iodepth=64 --size=4G --readwrite=randwrite --runtime=30s

    顺序读写、读写混合
    fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/dev/sdb --bs=4m --iodepth=1 --size=40G --readwrite=rw --rwmixread=75 --runtime=30s

    顺序读
    fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/dev/sdb --bs=4m --iodepth=1 --size=40G --readwrite=read --runtime=30s

    顺序写
    fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/dev/sdb --bs=4m --iodepth=1 --size=40G --readwrite=write --runtime=30s

    常用参数说明:

     参考https://blog.csdn.net/qq_32639315/article/details/112663171

    查看目录或者文件保存在哪个磁盘上:df -h xxxxx

  • 相关阅读:
    计算机考研复试真题 数字求和
    计算机考研复试真题 简单计算器
    计算机考研复试真题 N阶楼梯上楼问题
    P1082 [NOIP2012 提高组] 同余方程
    进制转换
    浮点数加法
    N的阶乘
    1055 The World's Richest (25 分)
    1028 List Sorting (25 分)
    1062 Talent and Virtue (25 分)
  • 原文地址:https://www.cnblogs.com/to-here/p/14759459.html
Copyright © 2011-2022 走看看