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

From: David Rientjes
Date: Tue Aug 11 2015 - 19:49:07 EST

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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at