Re: [PATCH v3 3/7] mm, slab: allocate off-slab freelists as reclaimable when appropriate

2018-07-30 Thread Christopher Lameter
On Wed, 18 Jul 2018, Vlastimil Babka wrote: > In SLAB, OFF_SLAB caches allocate management structures (currently just the > freelist) from kmalloc caches when placement in a slab page together with > objects would lead to suboptimal memory usage. For SLAB_RECLAIM_ACCOUNT > caches, > we can alloca

Re: [PATCH v3 3/7] mm, slab: allocate off-slab freelists as reclaimable when appropriate

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 10:35 AM, Mel Gorman wrote: > On Wed, Jul 18, 2018 at 03:36:16PM +0200, Vlastimil Babka wrote: >> In SLAB, OFF_SLAB caches allocate management structures (currently just the >> freelist) from kmalloc caches when placement in a slab page together with >> objects would lead to suboptima

Re: [PATCH v3 3/7] mm, slab: allocate off-slab freelists as reclaimable when appropriate

2018-07-19 Thread Mel Gorman
On Wed, Jul 18, 2018 at 03:36:16PM +0200, Vlastimil Babka wrote: > In SLAB, OFF_SLAB caches allocate management structures (currently just the > freelist) from kmalloc caches when placement in a slab page together with > objects would lead to suboptimal memory usage. For SLAB_RECLAIM_ACCOUNT > cac

[PATCH v3 3/7] mm, slab: allocate off-slab freelists as reclaimable when appropriate

2018-07-18 Thread Vlastimil Babka
In SLAB, OFF_SLAB caches allocate management structures (currently just the freelist) from kmalloc caches when placement in a slab page together with objects would lead to suboptimal memory usage. For SLAB_RECLAIM_ACCOUNT caches, we can allocate the freelists from the newly introduced reclaimable k