From: Jes Sorensen <jsorensen@xxxxxx> 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(-) -- 2.17.1