Re: [PATCH] show per-process swap usage via procfs

From: KAMEZAWA Hiroyuki
Date: Wed Nov 04 2009 - 19:09:46 EST

On Wed, 4 Nov 2009 14:15:40 -0500 (EST)
Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Wed, 4 Nov 2009, KAMEZAWA Hiroyuki wrote:
> > Now, anon_rss and file_rss is counted as RSS and exported via /proc.
> > RSS usage is important information but one more information which
> > is often asked by users is "usage of swap".(user support team said.)
> Hmmm... Could we do some rework of the counters first so that they are per
> cpu?
I don't think swap_usage counter has much costs because it's call path
is always slow path. But, I'm not in hurry. So rework is ok.

I'll post my percpu array counter with some rework, CCing you.
Maybe it can be used in this case.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at