Skip to content

block: add bio split counters for iostat

Aleksei Zakharov linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: extend bi_flags to int and introduce BIO_SPLITTEDinclude/linux/blk_types.h+3 -20 replies
2/2block: add iostat counters for requests splitsDocumentation/ABI/testing/procfs-diskstats Documentation/ABI/testing/sysfs-block Documentation/admin-guide/iostats.rst +5 more+34 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] block: add bio split counters for iostat

There's a mechanism which splits IO's if their size is greater than queue/max_sectors_kb setting. But there's no counter for split requests. Having splits counter helps to understand workload profile and necessity
of settings tuning.

bi_flags converted to int from short.
Add BIO_SPLITTED flag and set it in bio_split() for new bio. Add splits[] counters.
In blk_account_io_start() check the BIO_SPLITTED flag and if it's set increment appropriate splits counter.

Aleksei Zakharov (2):
block: extend bi_flags to int and introduce BIO_SPLITTED
block: add iostat counters for requests splits

 Documentation/ABI/testing/procfs-diskstats |  3 +++
 Documentation/ABI/testing/sysfs-block      |  5 ++++-
 Documentation/admin-guide/iostats.rst      | 10 ++++++++++
 block/bio.c                                |  2 ++
 block/blk-core.c                           |  2 ++
 block/genhd.c                              |  8 ++++++--
 block/partition-generic.c                  |  8 ++++++--
 include/linux/blk_types.h                  |  5 +++--
 include/linux/genhd.h                      |  1 +
 9 files changed, 37 insertions(+), 7 deletions(-)
Signature · 1 line
2.17.1