Re: [PATCH] mm: net: memcg accounting for TCP rx zerocopy

From: Shakeel Butt
Date: Tue Jan 12 2021 - 19:49:01 EST


On Tue, Jan 12, 2021 at 4:12 PM Arjun Roy <arjunroy@xxxxxxxxxx> wrote:
>
> On Tue, Jan 12, 2021 at 3:48 PM Roman Gushchin <guro@xxxxxx> wrote:
> >
[snip]
> > Historically we have a corresponding vmstat counter to each charged page.
> > It helps with finding accounting/stastistics issues: we can check that
> > memory.current ~= anon + file + sock + slab + percpu + stack.
> > It would be nice to preserve such ability.
> >
>
> Perhaps one option would be to have it count as a file page, or have a
> new category.
>

Oh these are actually already accounted for in NR_FILE_MAPPED.