mbox series

[0/5] RFC blk-mq device stats

Message ID 20190426002050.15499-1-Jes.Sorensen@gmail.com (mailing list archive)
Headers show
Series RFC blk-mq device stats | expand

Message

Jes Sorensen April 26, 2019, 12:20 a.m. UTC
From: Jes Sorensen <jsorensen@fb.com>

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.

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(-)