From: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
To: axboe@kernel.dk
Cc: linux-block@vger.kernel.org,
Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Subject: [RFC PATCH 0/4] block: add two statistic tables
Date: Wed, 8 Jul 2020 09:58:14 +0200 [thread overview]
Message-ID: <20200708075819.4531-1-guoqing.jiang@cloud.ionos.com> (raw)
Hi,
The patchset mostly introduces some additional io stats for latency and sector,
with those tables, we can know better about the io patttern. And we want the
disk_start_io_acct returns ns instead of convert from jiffies, so some code
in drbd are changed accordingly.
For the table, the first row of below tables means the number which are "<= 1",
while the last row means the number which are ">= 1024". And the rest rows in
the table represent the number in a range.
With HZ=1000.
$ cat /sys/block/md127/io_latency
1 ms: 3 0 0 0 - means 3 read IOs are finished less than or equal 1 ms
2 ms: 1 0 0 0 - means 1 read IO is finished in the range [2ms, 4ms)
4 ms: 0 0 0 0
8 ms: 0 0 0 0
16 ms: 1 0 0 0
32 ms: 0 0 0 0
64 ms: 0 0 0 0
128 ms: 0 0 0 0
256 ms: 0 0 0 0
512 ms: 0 0 0 0
1024 ms: 1 0 0 0
2048 ms: 1 0 0 0 - means 1 read IO is finished more than or equal 2048 ms
While with HZ=100.
$ cat /sys/block/md127/io_latency
10 ms: 3 0 0 0
20 ms: 1 0 0 0
40 ms: 0 0 0 0
80 ms: 0 0 0 0
160 ms: 1 0 0 0
320 ms: 0 0 0 0
640 ms: 0 0 0 0
1280 ms: 0 0 0 0
2560 ms: 0 0 0 0
5120 ms: 0 0 0 0
10240 ms: 1 0 0 0
20480 ms: 1 0 0 0
$ cat /sys/block/md127/io_size
1 KB: 0 0 0 0
2 KB: 0 0 0 0
4 KB: 0 0 0 0
8 KB: 5 0 0 0
16 KB: 0 0 0 0
32 KB: 0 0 0 0
64 KB: 0 0 0 0
128 KB: 0 0 0 0
256 KB: 0 0 0 0
512 KB: 0 0 0 0
1024 KB: 0 0 0 0
2048 KB: 0 0 0 0
I will add a document if it is worth to add the two tables, review and comment
are welcome.
Thanks,
Guoqing
Guoqing Jiang (5):
block: return ns precision from disk_start_io_acct
drbd: remove unused argument from drbd_request_prepare and
__drbd_make_request
drbd: rename start_jif to start_ns
block: add a statistic table for io latency
block: add a statistic table for io sector
block/Kconfig | 9 +++++
block/blk-core.c | 61 +++++++++++++++++++++++++++++--
block/genhd.c | 47 ++++++++++++++++++++++++
drivers/block/drbd/drbd_debugfs.c | 8 ++--
drivers/block/drbd/drbd_int.h | 4 +-
drivers/block/drbd/drbd_main.c | 3 +-
drivers/block/drbd/drbd_req.c | 15 +++-----
include/linux/part_stat.h | 8 ++++
8 files changed, 135 insertions(+), 20 deletions(-)
next reply other threads:[~2020-07-08 7:59 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 7:58 Guoqing Jiang [this message]
2020-07-08 7:58 ` [PATCH RFC 1/5] block: return ns precision from disk_start_io_acct Guoqing Jiang
2020-07-08 13:27 ` Ming Lei
2020-07-08 13:53 ` Guoqing Jiang
2020-07-08 17:46 ` Guoqing Jiang
2020-07-08 7:58 ` [PATCH RFC 2/5] drbd: remove unused argument from drbd_request_prepare and __drbd_make_request Guoqing Jiang
2020-07-08 7:58 ` [PATCH RFC 3/5] drbd: rename start_jif to start_ns Guoqing Jiang
2020-07-08 7:58 ` [PATCH RFC 4/5] block: add a statistic table for io latency Guoqing Jiang
2020-07-08 13:29 ` Ming Lei
2020-07-08 14:02 ` Guoqing Jiang
2020-07-08 14:06 ` Guoqing Jiang
2020-07-09 18:48 ` Guoqing Jiang
2020-07-10 0:53 ` Ming Lei
2020-07-10 8:55 ` Guoqing Jiang
2020-07-10 10:00 ` Ming Lei
2020-07-10 10:29 ` Guoqing Jiang
2020-07-11 1:32 ` Ming Lei
2020-07-12 20:39 ` Guoqing Jiang
2020-07-12 20:44 ` Jens Axboe
2020-07-12 21:04 ` Guoqing Jiang
2020-07-10 14:04 ` Jens Axboe
2020-07-08 7:58 ` [PATCH RFC 5/5] block: add a statistic table for io sector Guoqing Jiang
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=20200708075819.4531-1-guoqing.jiang@cloud.ionos.com \
--to=guoqing.jiang@cloud.ionos.com \
--cc=axboe@kernel.dk \
--cc=linux-block@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