Flexible I/O Tester development
 help / color / mirror / Atom feed
* [RFC PATCH] doc: add comments for the difference between iodepth and blkdev's inflight
@ 2018-01-29 16:45 weiping zhang
  2018-03-17  8:44 ` Sitsofe Wheeler
  0 siblings, 1 reply; 3+ messages in thread
From: weiping zhang @ 2018-01-29 16:45 UTC (permalink / raw)
  To: axboe; +Cc: fio

If user want control the inflight IOs for the tested block device, for
example set iodepth=16, and we can get result like following:

IO depths: 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0%

this result only means (16~31) IOs inflight, don't means requests inflight,
if max_sectors_kb = 64KB, and we set bs=256KB, the number of inflight
requests may reach to 64(if nr_request allow). So for user want to control
the number of inflight requests, bs should less than max_sectors_kb.

Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
---
 fio.1 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/fio.1 b/fio.1
index 54d1b0f..b7f4466 100644
--- a/fio.1
+++ b/fio.1
@@ -1814,7 +1814,10 @@ engines may impose OS restrictions causing the desired depth not to be
 achieved. This may happen on Linux when using libaio and not setting
 `direct=1', since buffered I/O is not async on that OS. Keep an
 eye on the I/O depth distribution in the fio output to verify that the
-achieved depth is as expected. Default: 1.
+achieved depth is as expected. The iodepth is not same as block device's
+inflight. If you want control block device's inflight number by this parameter,
+you should make sure bs less than max_sectors_kb of that block device, otherwise
+bs will be splitted into multiple requests at block layer. Default: 1.
 .TP
 .BI iodepth_batch_submit \fR=\fPint "\fR,\fP iodepth_batch" \fR=\fPint
 This defines how many pieces of I/O to submit at once. It defaults to 1
-- 
2.9.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-19 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-29 16:45 [RFC PATCH] doc: add comments for the difference between iodepth and blkdev's inflight weiping zhang
2018-03-17  8:44 ` Sitsofe Wheeler
2018-03-19 16:13   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox