Re: [PATCH v2 1/2] smaps: fill missing fields for vma(VM_HUGETLB)

David Rientjes
2015-08-11T23:49:03Z

On Tue, 11 Aug 2015, Naoya Horiguchi wrote:

> > This memory was not included in rss originally because memory in the
> > hugetlb persistent pool is always resident. Unmapping the memory does not
> > free memory. For this reason, hugetlb memory has always been treated as
> > its own type of memory.
>
> Right, so it might be better not to use the word "RSS" for hugetlb, maybe
> something like "HugetlbPages:" seems better to me.
>

When the pagesize is also specified, as it is in smaps, I think this would
be the best option. Note that we can't distinguish between variable
hugetlb sizes with VmFlags alone.