SLUB with Queueing beats SLAB in hackbench
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 of 16 patches 45 repliesIn review
14 of 16 patches are in this archive. The cover letter announces 16.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | ipc/sem.c: Bugfix for semop() not reporting successful operationipc/ | +30 | 8 replies | |
| 4/16 | slub: Use a constant for a unspecified node.mm/ | +5 | 2 replies | |
| 5/16 | SLUB: Constants need ULmm/ | +2 | 2 replies | |
| 6/16 | slub: Use kmem_cache flags to detect if slab is in debugging mode.include/ mm/ | +12 | 1 reply | |
| 7/16 | slub: discard_slab_unlockmm/ | +10 | 2 replies | |
| 8/16 | slub: remove dynamic dma slab allocationmm/ | +41 | 5 replies | |
| 9/16 | make allocpercpu usable during early bootmm/ | +3 | 12 replies | |
| 10/16 | slub: Remove static kmem_cache_cpu array for bootmm/ | +6 | 2 replies | |
| 11/16 | slub: Dynamically size kmalloc cache allocationsinclude/ mm/ | +139 | 0 replies | |
| 12/16 | SLUB: Add SLAB style per cpu queueinginclude/ mm/ | +416 | 2 replies | |
| 13/16 | SLUB: Resize the new cpu queuesinclude/ mm/ | +178 | 0 replies | |
| 14/16 | SLUB: Get rid of useless function count_free()mm/ | +3 | 0 replies | |
| 15/16 | SLUB: Remove MAX_OBJS limitationinclude/ mm/ | +1 | 0 replies | |
| 16/16 | slub: Drop allocator announcementmm/ | +0 | 0 replies |
Reviews trailers per patch
3 of 14 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Tejun Heo | David Rientjes | KAMEZAWA Hiroyuki | Luca Tettamanti |
|---|---|---|---|---|
| Series | A-b | |||
| 1/16 | T-b | |||
| 4/16 | Reviewd-by | |||
| 5/16 | A-b | R-b | ||
| 6/16 | A-b | |||
| 7/16 | ||||
| 8/16 | ||||
| 9/16 | A-b | |||
| 10/16 | ||||
| 11/16 | ||||
| 12/16 | ||||
| 13/16 | ||||
| 14/16 | ||||
| 15/16 | ||||
| 16/16 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [S+Q 00/16] SLUB with Queueing beats SLAB in hackbench
The following patchset cleans some pieces up and then equips SLUB with per cpu queues that work similar to SLABs queues. With that approach SLUB wins in hackbench:
#!/bin/bash
uname -a
echo "./hackbench 100 process 200000"
./hackbench 100 process 200000
echo "./hackbench 100 process 20000"
./hackbench 100 process 20000
echo "./hackbench 100 process 20000"
./hackbench 100 process 20000
echo "./hackbench 100 process 20000"
./hackbench 100 process 20000
echo "./hackbench 10 process 20000"
./hackbench 10 process 20000
echo "./hackbench 10 process 20000"
./hackbench 10 process 20000
echo "./hackbench 10 process 20000"
./hackbench 10 process 20000
echo "./hackbench 1 process 20000"
./hackbench 1 process 20000
echo "./hackbench 1 process 20000"
./hackbench 1 process 20000
echo "./hackbench 1 process 20000"
./hackbench 1 process 20000
Procs NR SLAB SLUB SLUB+Queuing
----------------------------------------------------
100 200000 2741.3 2764.7 2231.9
100 20000 279.3 270.3 219.0
100 20000 278.0 273.1 219.2
100 20000 279.0 271.7 218.8
10 20000 34.0 35.6 28.8
10 20000 30.3 35.2 28.4
10 20000 32.9 34.6 28.4
1 20000 6.4 6.7 6.5
1 20000 6.3 6.8 6.5
1 20000 6.4 6.9 6.4
SLUB+Q is a merging of SLUB with some queuing concepts from SLAB and a new way of managing objects in the slabs using bitmaps. It uses a percpu queue so that free operations can be properly buffered and a bitmap for managing the free/allocated state in the slabs. It is slightly more inefficient than SLUB (due to the need to place large bitmaps --sized a few words--in some slab pages if there are more than BITS_PER_LONG objects in a slab) but in general does not increase space use too much.
The SLAB scheme of not touching the object during management is adopted. SLUB+Q can efficiently free and allocate cache cold objects without causing cache misses.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>