Skip to content

blk-mq queue stats

Jes Sorensen linux-block 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5blk-stat: rename batch to timeblock/blk-stat.c include/linux/blk_types.h+4 -40 replies
2/5block: keep track of per-device io sizes in statsblock/blk-iolatency.c block/blk-mq.c block/blk-stat.c +4 more+16 -150 replies
3/5Use blk-stat infrastructure to collect per queue device statsblock/blk-mq.c block/blk-stat.h block/blk-sysfs.c +1 more+100 -00 replies
4/5Export block dev stats to sysfsblock/blk-sysfs.c+23 -00 replies
5/5Expand block stats to export number of of requests per bucketblock/blk-sysfs.c+8 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] blk-mq queue stats

From: Jes Sorensen <[email protected]>

Hi,

This patchset adds per-device histogram statistics of read, write, and discard request sizes, as well as number of requests for each bucket. It uses the blk-stat infrastructure and only collects stats for devices for which it has been explicitly enabled by writing 1 to /sys/block/<dev>/queue/histstat

In addition it builds on top of two patches I recklessly stole from Josef - thanks!

Thoughts or oppinions on this approach? I am not married to the naming, so happy to change that if wanted.

v2 updated to apply against 5.2-rc2

Thanks,
Jes

Jes Sorensen (3):
Use blk-stat infrastructure to collect per queue device stats Export block dev stats to sysfs
Expand block stats to export number of of requests per bucket

Josef Bacik (2):
blk-stat: rename batch to time
block: keep track of per-device io sizes in stats

 block/blk-iolatency.c     |  2 +-
 block/blk-mq.c            | 56 ++++++++++++++++++++++++++++--
 block/blk-stat.c          | 16 +++++----
 block/blk-stat.h          |  3 +-
 block/blk-sysfs.c         | 71 +++++++++++++++++++++++++++++++++++++++
 block/blk-throttle.c      |  3 +-
 include/linux/blk_types.h |  3 +-
 include/linux/blkdev.h    | 12 +++++--
 8 files changed, 149 insertions(+), 17 deletions(-)
Signature · 1 line
2.17.1