From: Pavel Emelyanov <xemul@parallels.com>
To: Rik van Riel <riel@redhat.com>
Cc: Linux MM <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>,
Hugh Dickins <hughd@google.com>
Subject: Re: [PATCH] proc: Report PageAnon in last left bit of /proc/pid/pagemap
Date: Sat, 21 Apr 2012 00:36:58 +0400 [thread overview]
Message-ID: <4F91C8EA.9060708@parallels.com> (raw)
In-Reply-To: <4F91C7E7.8060300@redhat.com>
On 04/21/2012 12:32 AM, Rik van Riel wrote:
> On 04/20/2012 03:44 PM, Pavel Emelyanov wrote:
>
>> Andrew noticed, that the proc pagemap file solved 2 of 3 above issues -- it
>> reports whether a page is present or swapped and it doesn't report not
>> mapped page cache pages. But, it doesn't distinguish cow-ed file pages from
>> not cow-ed.
>>
>> I would like to make the last unused bit in this file to report whether the
>> page mapped into respective pte is PageAnon or not.
>>
>> Signed-off-by: Pavel Emelyanov<xemul@openvz.org>
>
> Looks reasonable to me. I see you also report "special" pages
> as file pages, but since those cannot be migrated anyway that
> should be ok.
Yes, and all the anon-shared pages happen to be PM_FILE too :) But they can be
filtered with vma flags/prot, so I hoped it's OK to do it that way for simplicity.
> Acked-by: Rik van Riel <riel@redhat.com>
>
Thanks,
Pavel
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2012-04-20 20:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-20 19:44 Pavel Emelyanov
2012-04-20 20:32 ` Rik van Riel
2012-04-20 20:36 ` Pavel Emelyanov [this message]
2012-04-27 12:39 ` [PATCH 1/2] proc: report file/anon bit in /proc/pid/pagemap Konstantin Khlebnikov
2012-04-27 13:37 ` Pavel Emelyanov
2012-04-27 23:40 ` Andrew Morton
2012-04-28 13:32 ` KOSAKI Motohiro
2012-04-29 8:28 ` Konstantin Khlebnikov
2012-04-27 12:39 ` [PATCH 2/2] proc: report page->index instead of pfn for non-linear mappings " Konstantin Khlebnikov
2012-04-27 13:37 ` Pavel Emelyanov
2012-04-30 10:48 ` [PATCH v3] proc: report file/anon bit " Konstantin Khlebnikov
2012-04-30 20:32 ` KOSAKI Motohiro
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=4F91C8EA.9060708@parallels.com \
--to=xemul@parallels.com \
--cc=akpm@linux-foundation.org \
--cc=hughd@google.com \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
/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