On Fri, Mar 11, 2022 at 11:20 AM Shakeel Butt <shakeelb@xxxxxxxxxx> wrote: > > On Fri, Mar 11, 2022 at 12:12:52AM +0000, Yosry Ahmed wrote: > > Count the pages used by KVM for page tables in pagetable memcg stats in > > memory.stat. > > > This is not just the memcg stats. NR_PAGETABLE is exposed in system-wide > meminfo as well as per-node meminfo. Memcg infrastructure maintaining > per-memcg (& per-node) NR_PAGETABLE stat should be transparent here. > Please update your commit message. Thanks for pointing this out! Updated in v2 patch series. > > BTW you are only updating the stats for x86. What about other archs? > Also does those arch allocated pagetable memory from page allocator or > kmem cache? > v2 patch series includes patches for other archs as well. Thanks!