linux - 如何解释 fio iops 日志文件?

标签 linux io storage benchmarking

我使用 fio 进行存储基准测试,使用 fio2gnuplot 绘制图表,每次我运行测试并查看 iops 的日志文件时,第二列始终为 1,即 iops 值,由于该图表只是垂直于Y 轴。这没有意义。我尝试了各种 iodepths、ioengines 但没有用。我是否使用了任何参数(选项)错误?

以下是我的工作文件。

[global]

enter code here

rw=randwrite
size=128m
thread=1
iodepth=2
ioengine=libaio
per_job_logs=0
directory=/home/fio



[job_512]
write_bw_log=logfiles_libaio/fio-test_512
write_iops_log=logfiles_libaio/fio-test_512
write_lat_log=logfiles_libaio/fio-test_512
bs=512b

这是日志文件

1, 1, 0, 512
2, 1, 1, 512
18, 1, 1, 512
19, 1, 0, 512
31, 1, 1, 512
53, 1, 1, 512
55, 1, 1, 512
56, 1, 0, 512
59, 1, 1, 512
63, 1, 1, 512

最佳答案

根据 fio 手册(man fio),在“FIO 文件格式”下,它说:

   Fio  supports  a  variety  of log file formats, for logging latencies, bandwidth, and IOPS. The logs
   share a common format, which looks like this:

   time (msec), value, data direction, offset

   Time for the log entry is always in milliseconds. The value logged depends on the type  of  log,  it
   will be one of the following:


   Latency log
          Value is in latency in usecs
   Bandwidth log
          Value is in KB/sec
   IOPS log
          Value is in IOPS

   Data direction is one of the following:


   0      IO is a READ
   1      IO is a WRITE
   2      IO is a TRIM

不过,我认为'offset'应该是'IO size'。

因此,在您的带宽情况下,它是:

timestamp(ms), bandwidth(KB/sec), R/W, size

关于linux - 如何解释 fio iops 日志文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39685890/

相关文章:

android - 将文件保存到内部存储

linux - 检查 D.userid 是否存在于目录 shell 中

c - Linux 示例中的 BLE 桥接模式

linux - 当我输入 'vi .bash_profile' 时 ESC 键不起作用

c++ - 将二进制文件读入 Armadillo 矩阵的直接方法?

c++ - C++中的类存储保证

linux - 如何找出哪个 mtd 设备连接到哪个 ubi 卷

multithreading - Haskell forkIO 线程使用 putStrLn 在彼此之上写入

c++ - 是否可以存储从 C++ 中的文本文件读取的换行符?

javascript - 浏览器选项卡存储?