Re: [PATCH 00/11] mm/cma: charge cma allocation to memcg using per area counters
From: David Hildenbrand (Arm)
Date: Tue Aug 25 2026 - 11:48:05 EST
On 8/25/26 16:47, Eric Chanudet wrote:
> On Mon, Aug 24, 2026 at 10:58:18AM +0200, Michal Hocko wrote:
>> On Fri 21-08-26 14:56:52, Eric Chanudet wrote:
>>> CMA allocations are currently unaccounted for by cgroup memory
>>> controllers. As system resources, they should fall under memcg, but CMA
>>> areas partition the available space for different purposes and memcg
>>> doesn't have a good representation for that.
>>
>> Which CMA usecases are covered by this work? It would be also great to
>> spend more time describing usecases.
>
> We would like to offer some usage guaranties to userspace processes
> ending up doing allocations in CMA.
How does this e.g., relate to hugetlb allocating from CMA, to then charge to a
hugetlb cgroup?
I always thought of CMA being a low-level allocation mechanism with various
different use cases, and actually the higher-level users should decide how
to/what to charge instead.
--
Cheers,
David