From: "Qin, Xiaokang" <xiaokang.qin@intel.com>
To: "Hansen, Dave" <dave.hansen@intel.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Cc: "Yin, Fengwei" <fengwei.yin@intel.com>
Subject: RE: [PATCH] proc/smaps: add proportional size of anonymous page
Date: Mon, 10 Nov 2014 08:48:12 +0000 [thread overview]
Message-ID: <6212C327DC2094488C1AAAD903AF062B01BCE1E6@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <545D3AFB.1080308@intel.com>
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@boot.art
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
-----Original Message-----
From: Hansen, Dave
Sent: Saturday, November 08, 2014 5:35 AM
To: Qin, Xiaokang; linux-mm@kvack.org
Cc: Yin, Fengwei
Subject: Re: [PATCH] proc/smaps: add proportional size of anonymous page
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?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2014-11-10 8:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 8:31 Xiaokang Qin
2014-11-07 21:34 ` Dave Hansen
2014-11-10 8:48 ` Qin, Xiaokang [this message]
2014-11-10 17:03 ` Dave Hansen
2014-11-11 14:40 ` Xiaokang
2014-11-11 15:22 ` Dave Hansen
2014-11-10 9:29 ` Xiaokang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6212C327DC2094488C1AAAD903AF062B01BCE1E6@SHSMSX104.ccr.corp.intel.com \
--to=xiaokang.qin@intel.com \
--cc=dave.hansen@intel.com \
--cc=fengwei.yin@intel.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox