Re: [PATCH 0/3] enable memcg accounting for kernfs objects

From: Michal Koutný
Date: Tue Aug 09 2022 - 13:49:43 EST


On Tue, Aug 09, 2022 at 07:31:31AM -1000, Tejun Heo <tj@xxxxxxxxxx> wrote:
> I'm not quite sure whether following the usual "charge it to the allocating
> task's cgroup" is the best way to go about it. I wonder whether it'd be
> better to attach it to the new cgroup's nearest ancestor with memcg enabled.

See also
https://lore.kernel.org/r/YnBLge4ZQNbbxufc@blackbook/
and
https://lore.kernel.org/r/20220511163439.GD24172@xxxxxxxxxxxxxxxxx/

Michal