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

From: Michal Hocko
Date: Mon Nov 13 2017 - 11:11:07 EST


On Mon 13-11-17 16:03:02, Roman Gushchin wrote:
> Currently we display some hugepage statistics (total, free, etc)
> in /proc/meminfo, but only for default hugepage size (e.g. 2Mb).
>
> If hugepages of different sizes are used (like 2Mb and 1Gb on x86-64),
> /proc/meminfo output can be confusing, as non-default sized hugepages
> are not reflected at all, and there are no signs that they are
> existing and consuming system memory.

Yes this sucks but we do have per numa node per h-state stats in sysfs
already /sys/devices/system/node/node*/hugepages

I know it is another source of the information but is there any reason
you cannot use it?
--
Michal Hocko
SUSE Labs