On 11/08/2014 05:34 AM, Dave Hansen wrote:
On 11/07/2014 12:31 AM, Xiaokang Qin wrote:
The "proportional anonymous page size" (PropAnonymous) of a process is the count of
anonymous pages it has in memory, where each anonymous page is devided by the number
of processes sharing it.
This seems like the kind of thing that should just be accounted for in
the existing pss metric. Why do we need a new, separate one?
Hi, Dave
For some case especially under Android, anonymous page sharing is
common, for example:
70323000-70e41000 rw-p 00000000 fd:00 120004
/data/dalvik-cache/x86/system@framework@xxxxxxxx
Size: 11384 kB
Rss: 8840 kB
Pss: 927 kB
Shared_Clean: 5720 kB
Shared_Dirty: 2492 kB
Private_Clean: 16 kB
Private_Dirty: 612 kB
Referenced: 7896 kB
Anonymous: 3104 kB
PropAnonymous: 697 kB
AnonHugePages: 0 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB
The only Anonymous here is confusing to me. What I really want to know
is how many anonymous page is there in Pss. After exposing
PropAnonymous, we could know 697/927 is anonymous in Pss.
I suppose the Pss - PropAnonymous = Proportional Page cache size for
file based memory and we want to break down the page cache into process
level, how much page cache each process consumes.
Regards,
Xiaokang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>