Thread (21 messages) 21 messages, 6 authors, 2021-05-13

Re: [PATCH v4 3/3] mm: memcg/slab: Disable cache merging for KMALLOC_NORMAL caches

From: Shakeel Butt <hidden>
Date: 2021-05-05 20:39:41
Also in: cgroups, lkml

On Wed, May 5, 2021 at 1:06 PM Waiman Long [off-list ref] wrote:
The KMALLOC_NORMAL (kmalloc-<n>) caches are for unaccounted objects only
when CONFIG_MEMCG_KMEM is enabled. To make sure that this condition
remains true, we will have to prevent KMALOC_NORMAL caches to merge
with other kmem caches. This is now done by setting its refcount to -1
right after its creation.

Suggested-by: Roman Gushchin <redacted>
Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Shakeel Butt <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help