Re: [PATCH 10/11] maps3: add /proc/kpagecount and /proc/kpageflags interfaces

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Dave Hansen <haveblue@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Rusty Russell <rusty@...>, Jeremy Fitzhardinge <jeremy@...>, David Rientjes <rientjes@...>, Fengguang Wu <wfg@...>
Date: Monday, October 15, 2007 - 7:11 pm

On Mon, Oct 15, 2007 at 03:48:33PM -0700, Dave Hansen wrote:

Hmm, I would have thought you'd find the NUMA bits especially interesting.
Being able to, say, colorize a process' memory map by what nodes its
pages land on could be very telling.


That is a concern. In general, I think getting too cute with page
flags and struct page in general is a bad idea because the rules here
are already so complex/fragile/confusing/underdocumented, but there's
definitely a lot of pressure in that direction.
 

Referenced, dirty, uptodate, lru, active, slab, writeback, reclaim,
and buddy all look like they might be interesting to me from the point
of view of watching what's happening in the VM graphically in
real-time.

For instance, watching the slab bit I can watch a 'find /' fill up
huge swaths of contiguous dcache memory, then get fragmented to hell
and never recover when I do a large userspace malloc. In other words,
this thing actually lets you see all the crap that happens in the VM
that we usually handwave about.

-- 
Mathematics is the supreme nostalgia of our time.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/11] maps3: pagemap monitoring v3, Matt Mackall, (Mon Oct 15, 6:25 pm)
Re: [PATCH 11/11] maps3: make page monitoring /proc file opt..., Jeremy Fitzhardinge, (Mon Oct 15, 6:51 pm)
Re: [PATCH 10/11] maps3: add /proc/kpagecount and /proc/kpag..., Matt Mackall, (Mon Oct 15, 7:11 pm)
[PATCH 8/11] maps3: regroup task_mmu by interface, Matt Mackall, (Mon Oct 15, 6:26 pm)
[PATCH 9/11] maps3: add /proc/pid/pagemap interface, Matt Mackall, (Mon Oct 15, 6:26 pm)
[PATCH 7/11] maps3: move clear_refs code to task_mmu.c, Matt Mackall, (Mon Oct 15, 6:26 pm)
Re: [PATCH 7/11] maps3: move clear_refs code to task_mmu.c, David Rientjes, (Tue Oct 16, 1:11 am)
[PATCH 4/11] maps3: introduce a generic page walker, Matt Mackall, (Mon Oct 15, 6:26 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, David Rientjes, (Tue Oct 16, 12:58 am)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Jeremy Fitzhardinge, (Mon Oct 15, 6:40 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Matt Mackall, (Mon Oct 15, 7:30 pm)
Re: [PATCH 4/11] maps3: introduce a generic page walker, Jeremy Fitzhardinge, (Mon Oct 15, 7:20 pm)
[PATCH 3/11] maps3: move is_swap_pte, Matt Mackall, (Mon Oct 15, 6:26 pm)