Re: [PATCH v2] memcg: add charging of already allocated slab objects
From: Shakeel Butt <shakeel.butt@linux.dev>
Date: 2024-08-29 15:50:42
Also in:
cgroups, linux-mm, lkml
From: Shakeel Butt <shakeel.butt@linux.dev>
Date: 2024-08-29 15:50:42
Also in:
cgroups, linux-mm, lkml
On Thu, Aug 29, 2024 at 10:42:59AM GMT, Vlastimil Babka wrote:
On 8/29/24 02:49, Yosry Ahmed wrote:
[...]
quoted
Personally, I prefer either explicitly special casing the slab cache used for the objcgs vector, explicitly tagging KMALLOC_NORMAL allocations, or having a dedicated documented helper that finds the slab cache kmalloc type (if any) or checks if it is a KMALLOC_NORMAL cache.A helper to check is_kmalloc_normal() would be better than defining KMALLOC_TYPE and using it directly, yes. We don't need to handle any other types now until anyone needs those.
Sounds good, will update in v3.