linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC V3 0/4] block: add two statistic tables
@ 2020-08-13  8:11 Guoqing Jiang
  2020-08-13  8:11 ` [PATCH RFC V3 1/4] block: add a statistic table for io latency Guoqing Jiang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Guoqing Jiang @ 2020-08-13  8:11 UTC (permalink / raw)
  To: linux-block, axboe; +Cc: jinpu.wang, danil.kipnis, Guoqing Jiang

From: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>

Hi,

This version has below changes:

* Move the #ifdef CONFIG_BLK_ADDITIONAL_DISKSTAT into the function body
  per Johannes's comment.

* Tweak the output of two tables to make they are more intuitive. See
  below io_size table, and io_latency table replaces KB with ms.
# cat /sys/block/md0/io_size
[    0 - 1    ) KB: 0 0 0 0
[    1 - 2    ) KB: 0 0 0 0
[    2 - 4    ) KB: 0 0 0 0
[    4 - 8    ) KB: 0 0 0 0
[    8 - 16   ) KB: 0 0 0 0
[   16 - 32   ) KB: 0 0 0 0
[   32 - 64   ) KB: 0 0 0 0
[   64 - 128  ) KB: 0 0 0 0
[  128 - 256  ) KB: 0 0 0 0
[  256 - 512  ) KB: 0 0 0 0
[  512 - 1024 ) KB: 0 0 0 0
      >= 1024   KB: 0 0 0 0

Thanks,
Guoqing

RFC V2: https://marc.info/?l=linux-block&m=159467483514062&w=2
* don't call ktime_get_ns and drop unnecessary patches.
* add io_extra_stats to avoid potential overhead.

RFC V1: https://marc.info/?l=linux-block&m=159419516730386&w=2

Guoqing Jiang (4):
  block: add a statistic table for io latency
  block: add a statistic table for io sector
  block: add io_extra_stats node
  block: call blk_additional_{latency,sector} only when io_extra_stats
    is true

 Documentation/ABI/testing/sysfs-block | 26 +++++++++
 Documentation/block/queue-sysfs.rst   |  6 +++
 block/Kconfig                         |  9 ++++
 block/blk-core.c                      | 51 ++++++++++++++++++
 block/blk-sysfs.c                     |  8 +++
 block/genhd.c                         | 78 +++++++++++++++++++++++++++
 include/linux/blkdev.h                |  2 +
 include/linux/part_stat.h             |  8 +++
 8 files changed, 188 insertions(+)

--
2.17.1


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

end of thread, other threads:[~2020-08-13  8:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13  8:11 [PATCH RFC V3 0/4] block: add two statistic tables Guoqing Jiang
2020-08-13  8:11 ` [PATCH RFC V3 1/4] block: add a statistic table for io latency Guoqing Jiang
2020-08-13  8:11 ` [PATCH RFC V3 2/4] block: add a statistic table for io sector Guoqing Jiang
2020-08-13  8:11 ` [PATCH RFC V3 3/4] block: add io_extra_stats node Guoqing Jiang
2020-08-13  8:11 ` [PATCH RFC V3 4/4] block: call blk_additional_{latency,sector} only when io_extra_stats is true Guoqing Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).