Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, April 12, 2007 - 6:22 pm

On Fri, 13 Apr 2007 11:14:20 +1000 Nick Piggin <nickpiggin@yahoo.com.au> wrote:


Well hang on.  This isn't a tool for understanding kernel behaviour.  It's
a tool for understanding applciation behaviour.

So one doesn't ask "who is mapping that page" - that's a kernel developer
thing.

Instead, one says "what pages are being used by my application", then, for
each of those pages "what is that page's state".  So the first step is to
collect all the pfns from /proc/$(pidof my-application)/pagemap and then to
use those pfns to look the individual pages up in /proc/kpagemap.

If you really want to know "who is using page 123435" then you'd need to
search /proc/*/pagemap.  There are possibly legitimate reasons why an
application developer would want to at least pertially perform such an
operation ("who am I sharing with"), but I doubt if it's the common case.


hm, yes, there's plenty of precedent for that.


I akpm!
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 6/13] maps: Move the page walker code to lib/, Matt Mackall, (Tue Apr 3, 7:43 pm)
[PATCH 8/13] maps: Move clear_refs code to task_mmu.c, Matt Mackall, (Tue Apr 3, 7:43 pm)
[PATCH 9/13] maps: Regroup task_mmu by interface, Matt Mackall, (Tue Apr 3, 7:43 pm)
[PATCH 12/13] maps: Add /proc/pid/pagemap interface, Matt Mackall, (Tue Apr 3, 7:43 pm)
[PATCH 13/13] maps: Add /proc/kpagemap interface, Matt Mackall, (Tue Apr 3, 7:43 pm)
Re: [PATCH 12/13] maps: Add /proc/pid/pagemap interface, Nikita Danilov, (Wed Apr 4, 4:18 am)
Re: [PATCH 12/13] maps: Add /proc/pid/pagemap interface, Nikita Danilov, (Wed Apr 4, 11:03 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, William Lee Irwin III, (Thu Apr 12, 4:10 pm)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, William Lee Irwin III, (Thu Apr 12, 4:42 pm)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Andrew Morton, (Thu Apr 12, 6:22 pm)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, William Lee Irwin III, (Thu Apr 12, 11:53 pm)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, William Lee Irwin III, (Thu Apr 12, 11:55 pm)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, William Lee Irwin III, (Fri Apr 13, 12:08 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Christoph Hellwig, (Fri Apr 13, 12:51 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Christoph Hellwig, (Fri Apr 13, 1:13 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, William Lee Irwin III, (Fri Apr 13, 1:15 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Christoph Hellwig, (Fri Apr 13, 2:46 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Ananth N Mavinakayan ..., (Fri Apr 13, 5:13 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Ananth N Mavinakayan ..., (Fri Apr 13, 5:24 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Christoph Hellwig, (Mon Apr 16, 3:59 am)
Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups, Christoph Hellwig, (Mon Apr 16, 4:00 am)