ublk: NUMA-aware memory allocation
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest5 patches 1 replyApplied
- v35 patches 6 repliesSuperseded
- v25 patches 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 2 replies | Superseded |
Changes in v4 from the cover letter
- fix build failure because __counted_by() doesn't support nested fields
- fix commit log on patch "ublk: implement NUMA-aware memory allocation"
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | ublk: reorder tag_set initialization before queue allocationdrivers/ | +6 | 0 replies | |
| 2/5 | ublk: implement NUMA-aware memory allocationdrivers/ | +53 | 0 replies | |
| 3/5 | ublk: use struct_size() for allocationdrivers/ | +3 | 0 replies | |
| 4/5 | selftests: ublk: set CPU affinity before thread initializationtools/ | +10 | 0 replies | |
| 5/5 | selftests: ublk: make ublk_thread thread-local variabletools/ tools/ | +45 | 0 replies |
Reviews trailers per patch
3 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Caleb Sander Mateos |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V4 0/5] ublk: NUMA-aware memory allocation
Hi Jens,
The 1st two patches implement ublk driver NUMA aware memory allocation.
The last two patches implement it for ublk selftest utility.
taskset -c 0-31 ~/git/fio/t/io_uring -p0 -n16 -r 40 /dev/ublkb0 shows 5%~10% IOPS improvement on one AMD zen4 dual socket machine when creating ublk/null with 16 queues and AUTO_BUF_REG(zero copy).
V4:
- fix build failure because __counted_by() doesn't support nested fields
- fix commit log on patch "ublk: implement NUMA-aware memory allocation"
V3:
- don't use DECLARE_FLEX_ARRAY()
- annotate flexible array by __counted_by()
V2:
- use a flexible array member for queues field, save one indirection for retrieving ublk queue
- rename __queues into queues
- remove the queue_size field from struct ublk_device
- Move queue allocation and deallocation into ublk_init_queue() and ublk_deinit_queue()
- use flexible array for ublk_queue.ios
- convert ublk_thread_set_sched_affinity() to use pthread_setaffinity_np()
Ming Lei (5):
ublk: reorder tag_set initialization before queue allocation
ublk: implement NUMA-aware memory allocation
ublk: use struct_size() for allocation
selftests: ublk: set CPU affinity before thread initialization
selftests: ublk: make ublk_thread thread-local variable
drivers/block/ublk_drv.c | 98 +++++++++++++++++----------- tools/testing/selftests/ublk/kublk.c | 70 ++++++++++++-------- tools/testing/selftests/ublk/kublk.h | 9 +-- 3 files changed, 105 insertions(+), 72 deletions(-)
Signature · 1 line
2.47.0