NVMe: Introduce CMB allocation scheme
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] NVMe: Introduce CMB allocation scheme
Quoted 9 lines · Keith Busch
Quoted 5 lines · Jon Derrick
This patchset changes the CMB allocation scheme. Instead of reserving the entire range for SQes and automatically placing the SQes in the CMB, this set creates sysfs knobs to manage it. This allows partial usage of the CMB for SQes, so that the remainder can be mmapped or used for other NVMe-defined CMB usages.
Thanks, Jon.
Quoted 7 lines
In general, I like the control and visibility this provides. With this, I think we're on the verge of warranting a new
drivers/nvme/host/sysfs.cfile to keep all the nvme sysfs management in one place.I don't think anyone is in a rush to see this in the 4.5 merge window, so I'll load this on a CMB capable machine and provide a more thorough review in the next week or so.
One potential problem, this allows the queue depth to change on a live request_queue. The block layer won't allow that right now. That can also theoretically happen on a controller reset, but doesn't happen in real life (that I know of). For this CMB proposal to really be useful, we need a new blk-mq API to let us change the depth at runtime.
I thought the dynamic h/w contexts patch[1] was 'ok' and may have provided a route to change the depth as well. That patch, though, saw a 0-day boot failure. The failure was incorrectly sent to my spam folder, and I only noticed it this week. If that can be acceptably resolved, then it looks possible to alter the queue depth with a bit more work.
---
[1] http://lists.infradead.org/pipermail/linux-nvme/2015-December/003452.html