[PATCH] smaps should deal with huge zero page exactly same as normal zero page
From: Fengwei Yin
Date: Thu Oct 09 2014 - 05:20:07 EST
Hi,
Fengguang found that the RSS/PSS shown in smaps is not correct
if the file is /dev/zero.
Example:
7bea458b3000-7fea458b3000 r--p 00000000 00:13 39989
/dev/zero
Size: 4294967296 kB
Rss: 10612736 kB
Pss: 10612736 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 10612736 kB
Private_Dirty: 0 kB
Referenced: 10612736 kB
Anonymous: 0 kB
AnonHugePages: 10612736 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB
VmFlags: rd mr mw me
Attachment:
0001-smaps-should-deal-with-huge-zero-page-exactly-same.patch
Description: Binary data