iodepth and synchronous ioengines ("pitfall")
Hi,
I just stumbled into a glaring pitfall when playing with iodepth=X for the first time. Was using ioengine=sync (default), increased iodepth > 1 and wondered briefly why my results didn't change. Thinking about it, this made perfect sense and the "IO depths" distribution in the result summary even pointed me to it.
Nevertheless, it might help others to avoid this alltogether if the man page paragraph on iodepth would include a small heads up / reference to ioengines. Example patch attached, not quite sure about the wording for the verify_async aspect.
Sebastian
--- fio.1 | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
fio.1 +3 -1
@@ -379,7 +379,9 @@ Loads an external I/O engine object file. Append the engine filename as .RE .TP .BI iodepth \fR=\fPint -Number of I/O units to keep in flight against the file. Default: 1. +Number of I/O units to keep in flight against the file. Note that increasing +iodepth beyond 1 will not affect synchronous ioengines (except for small +degress when verify_async is in use). Default: 1. .TP .BI iodepth_batch \fR=\fPint Number of I/Os to submit at once. Default: \fBiodepth\fR.
Signature · 1 line
1.4.4.4
Quoted 8 lines · Sebastian Kayser
Hi,
I just stumbled into a glaring pitfall when playing with iodepth=X for the first time. Was using ioengine=sync (default), increased iodepth > 1 and wondered briefly why my results didn't change. Thinking about it, this made perfect sense and the "IO depths" distribution in the result summary even pointed me to it.
Quoted 4 lines
Nevertheless, it might help others to avoid this alltogether if the man page paragraph on iodepth would include a small heads up / reference to ioengines. Example patch attached, not quite sure about the wording for the
verify_asyncaspect.
It's a good idea. Something else to keep in mind is that even with async engines, you can run into this issue. Say in Linux and not setting direct=1, the buffered IO will still be sync. So I think I'll add some wording as well to have the user keep an eye on the achieved IO depths and not just assume that it's running with a depth of X for iodepth=X.
Signature · 1 line
Jens Axboe
Quoted 14 lines · Jens Axboe
Quoted 8 lines · Sebastian Kayser
Hi,
I just stumbled into a glaring pitfall when playing with iodepth=X for the first time. Was using ioengine=sync (default), increased iodepth > 1 and wondered briefly why my results didn't change. Thinking about it, this made perfect sense and the "IO depths" distribution in the result summary even pointed me to it.
Quoted 4 lines
Nevertheless, it might help others to avoid this alltogether if the man page paragraph on iodepth would include a small heads up / reference to ioengines. Example patch attached, not quite sure about the wording for the
verify_asyncaspect.
Quoted 5 lines
It's a good idea. Something else to keep in mind is that even with async engines, you can run into this issue. Say in Linux and not setting direct=1, the buffered IO will still be sync. So I think I'll add some wording as well to have the user keep an eye on the achieved IO depths and not just assume that it's running with a depth of X for iodepth=X.
http://git.kernel.dk/?p=fio.git;a=commitdiff;h=ee72ca09d4657f6a805c113d9bc43428f4b28a89
Signature · 1 line
Jens Axboe