try to save some memory for kmem_cache in some cases
Status from this message: [merged] mm-slub-wrap-kmem_cache-cpu_partial-in-config-config_slub_cpu_partial.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 0 repliesApplied 3/3
- v13 patches 7 repliesSuperseded
Changes in v2 from the cover letter
define some macro to make the code more elegant
Patches in v2 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm/slub: pack red_left_pad with another int to save a wordinclude/ | +1 | 0 replies | Applied |
| 2/3 | mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIALinclude/ mm/ | +28 | 0 replies | Applied |
| 3/3 | mm/slub: wrap kmem_cache->cpu_partial in config CONFIG_SLUB_CPU_PARTIALinclude/ mm/ | +51 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH V2 0/3] try to save some memory for kmem_cache in some cases
kmem_cache is a frequently used data in kernel. During the code reading, I found maybe we could save some space in some cases.
1. On 64bit arch, type int will occupy a word if it doesn't sit well.
2. cpu_slab->partial is just used when CONFIG_SLUB_CPU_PARTIAL is set
3. cpu_partial is just used when CONFIG_SLUB_CPU_PARTIAL is set, while just save some space on 32bit arch.
v2:
define some macro to make the code more elegant
Wei Yang (3):
mm/slub: pack red_left_pad with another int to save a word mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL mm/slub: wrap kmem_cache->cpu_partial in config
CONFIG_SLUB_CPU_PARTIAL
include/linux/slub_def.h | 34 ++++++++++++++++++- mm/slub.c | 85 ++++++++++++++++++++++++++---------------------- 2 files changed, 80 insertions(+), 39 deletions(-)
Signature · 7 lines
2.11.0 -- 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>