Re: [PATCH 0/3] try to save some memory for kmem_cache in some cases

2017-04-30 Thread Christoph Lameter
On Sun, 30 Apr 2017, Wei Yang wrote: > 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

[PATCH 0/3] try to save some memory for kmem_cache in some cases

2017-04-30 Thread Wei Yang
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 whe