blk-stat: Add ability to not bucket IO; improve IO polling.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 15 repliesIn review
- v22 patches 3 repliesSuperseded
- v12 patches 10 repliesSuperseded
Changes since v1 from the cover letter
Modified the bucket function as per Jens' suggestions.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | blk-stat: convert blk-stat bucket callback to signedblock/ block/ | +9 | 0 replies | |
| 2/2 | blk-mq: Add a polling specific stats functionblock/ | +35 | 15 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] blk-stat: Add ability to not bucket IO; improve IO polling.
From: Stephen Bates <[email protected]>
Omar recently developed some patches for block layer stats that use callbacks to determine which bucket an IO should be considered for. At the same time there was discussion at LSF/MM that we might not want to consider all IO when generating stats for certain algorithms (e.g. IO completion polling) or to bucket them in a more optimal fashion.
This set does two things. It makes the bucket callback for stats signed so we can now ignore IO that cause a negative to be returned from the bucket function. It then improves the IO polling latency estimations by bucketing stats based on IO size and direction.
This patchset applies cleanly on 6809ef67eb7b4b68d (Merge branch 'for-4.12/block' into for-next) in Jens' for-next tree.
I've lightly tested this using QEMU and a real NVMe low-latency device. I do not have performance number yet. Feedback would be appreciated! I am not *super* happy with how the bucketing by size is done. Any suggestions on how to improve this would be appreciated!
Changes since v1:
Modified the bucket function as per Jens' suggestions.
Changes since v1:
Dropped the cast in blk_stat_rq_ddir() as per Omar's suggestion. Moved to an array of buckets based on IO size rather than a filter as suggested by Jens and Damien.
Rebased on Jen's for-next tree
Stephen Bates (2):
blk-stat: convert blk-stat bucket callback to signed
blk-mq: Add a polling specific stats function
block/blk-mq.c | 45 +++++++++++++++++++++++++++++++++++---------- block/blk-stat.c | 6 ++++-- block/blk-stat.h | 9 +++++---- 3 files changed, 44 insertions(+), 16 deletions(-)
Signature · 1 line
2.7.4