Re: /proc/loadavg: total number of processes is wrong?

From: Guillaume Chazarain
Date: Wed Mar 12 2008 - 18:50:47 EST


On 3/12/08, Jiri Slaby <jirislaby@xxxxxxxxx> wrote:
> I guess you need to ps max, but it won't match exactly anyway.

With ps axh you can get it:

[g ~]$ cat /proc/loadavg|cat
0.45 0.35 0.24 3/192 12463
[g ~]$ ps Haxh|wc -l
192


--
Guillaume
--
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/