-
Hello all, I am currently undertaking a performance comparison study to evaluate read/write performance in different systems. While testing with directIO (direct=1), the results using fio seem promising. However, when I employ fio for a sequential buffer read test to assess performance with cached files, I observe a significant discrepancy between the numbers reported by dd and fio. The dd command reports a throughput of 5GB/s, as expected, whereas fio reports the figure as 200MB/s. In addition, during the fio run, I noticed heavy disk usage as observed with Commands and results for clarity: dd result: Disk stats (read/write): I am running fio-3.35 on Red Hat Enterprise Linux release 9.3 (Kernel: 5.14.0-362.8.1.el9_3.x86_64). Any insights into this discrepancy and suggestions for further investigation would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Fio will invalidate the cache if the file before reading it, as without that you're just measuring how fast you can copy pages and not doing any io. You can then this off with invalidate=0. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the response. After fill in invalidate=0, I increase the throughput from 150MB/s to 1GB/s. Run status group 0 (all jobs): It is still reporting 1/5 throughput comparing with DD. Run status group 0 (all jobs): These performance number now makes a lot more sense. Thanks! |
Beta Was this translation helpful? Give feedback.
Fio will invalidate the cache if the file before reading it, as without that you're just measuring how fast you can copy pages and not doing any io. You can then this off with invalidate=0.