From: weiping zhang <zhangweiping@didichuxing.com>
To: axboe@kernel.dk
Cc: fio@vger.kernel.org
Subject: [RFC PATCH] doc: add comments for the difference between iodepth and blkdev's inflight
Date: Tue, 30 Jan 2018 00:45:53 +0800 [thread overview]
Message-ID: <20180129164548.GA7056@localhost.didichuxing.com> (raw)
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
next reply other threads:[~2018-01-29 16:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-29 16:45 weiping zhang [this message]
2018-03-17 8:44 ` [RFC PATCH] doc: add comments for the difference between iodepth and blkdev's inflight Sitsofe Wheeler
2018-03-19 16:13 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180129164548.GA7056@localhost.didichuxing.com \
--to=zhangweiping@didichuxing.com \
--cc=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox