Re: [PATCH] mm: show stats for non-default hugepage sizes in /proc/meminfo

From: Dave Hansen
Date: Mon Nov 13 2017 - 13:17:40 EST


On 11/13/2017 10:11 AM, Roman Gushchin wrote:
> On Mon, Nov 13, 2017 at 09:06:32AM -0800, Dave Hansen wrote:
>> On 11/13/2017 08:03 AM, Roman Gushchin wrote:
>>> To solve this problem, let's display stats for all hugepage sizes.
>>> To provide the backward compatibility let's save the existing format
>>> for the default size, and add a prefix (e.g. 1G_) for non-default sizes.
>>
>> Is there something keeping you from using the sysfs version of this
>> information?
>
> Just answered the same question to Michal.
>
> In two words: it would be nice to have a high-level overview of
> memory usage in the system in /proc/meminfo.

I don't think it's worth cluttering up meminfo for this, imnho.