blk-mq: per-ctx tag caching
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 1 replyIn review
- v14 patches 3 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | sbitmap: remove cleared bitmaskinclude/ lib/ | +10 | 0 replies | |
| 2/6 | sbitmap: add batch tag retrievalinclude/ lib/ | +118 | 0 replies | |
| 3/6 | blk-mq: remove 'clear_ctx_on_error'block/ | +1 | 0 replies | |
| 4/6 | blk-mq: remove ctx->queueblock/ block/ block/ | +2 | 0 replies | |
| 5/6 | blk-mq: add struct blk_mq_ctx_typeblock/ block/ block/ +1 more | +21 | 0 replies | |
| 6/6 | blk-mq: allocate tags in batchesblock/ block/ block/ +3 more | +144 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCHSET v2 0/6] blk-mq: per-ctx tag caching
Here's v2 of this patchset. It should be solid now, the previous version didn't handle tag flushing correctly, or multiple hardware queue types.
The idea here is that we can reduce the cost of getting a tag for a new request, if we don't get them piecemeal. Add a per-ctx tag cache, and grab batches of tags if it's empty. If it's not empty, we can just find a free bit there.
/sys/kernel/debug/block/<dev>/<hctx>/<cpu>/tag_hit holds some stats associated with this, so you can check how it's doing.
I've seen nice improvements with this in testing.
Signature · 1 line
Jens Axboe