Re: [RFC mm][PATCH 2/5] percpu cached mm counter

From: KAMEZAWA Hiroyuki
Date: Thu Dec 10 2009 - 03:45:40 EST


On Thu, 10 Dec 2009 09:33:10 +0100
Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
>
> > I'm sorry If I miss your point...are you saying remove all mm_counter
> > completely and remake them under perf ? If so, some proc file
> > (/proc/<pid>/statm etc) will be corrupted ?
>
> No, i'm not suggesting that - i'm just suggesting that right now MM
> stats are not very well suited to be exposed via perf. If we wanted to
> measure/sample the information in /proc/<pid>/statm it just wouldnt be
> possible. We have a few events like pagefaults and a few tracepoints as
> well - but more would be possible IMO.
>

Ah, ok. More events will be useful.

This patch itself is for reduce(not increase) cache miss in page fault pass..
And counters I'll add is for task monitoring, like ps or top, and for improving
OOM killer. Not for counting events but for showing current _usage_ to users
via procfs or to oom killer.

I'll continue to make an efforts to find better synchronization scheme
rather than adding hook to schedule() but...

Thanks,
-Kame

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/