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. 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?