Re: ps performance sucks

From: Andrew Morton (akpm@digeo.com)
Date: Thu Nov 07 2002 - 16:05:45 EST


"Albert D. Cahalan" wrote:
>
> In case you happen to know where they are, I'm looking for these:
>
> pages reclaimed

/proc/vmstat:pgsteal

> minor faults

/proc/vmstat:pgfault - /proc/vmstat:pgmajfault

> COW faults
> zero-page faults

These are not available separately

> anticipated short-term memory shortfall

hm. tricky.

> pages freed

/proc/vmstat:pgfree

This is a little broken in 2.5.46. pgfree is accumulated
_before_ the per-cpu LIFO queues and pgalloc is accumulated _after_
the per-cpu queues (or vice versa) so they're out of whack.

> pages scanned by page-replacement algorithm

/proc/vmstat:pgscan

> clock cycles by page replacement algorithm

Not available. Could sum up the CPU across all kswapd instances,
which is a bit lame.

> number of system calls

Not available

> number of forks (fork, vfork, & clone) and execs

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



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:49 EST