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

From: Tejun Heo
Date: Tue Aug 09 2022 - 13:56:38 EST


Hello,

On Tue, Aug 09, 2022 at 07:49:34PM +0200, Michal Koutný wrote:
> 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/

Ah, thanks. Vasily, can you please include some summary of the discussions
and the rationales for the path taken in the commit message?

Thanks.

--
tejun