/proc/stat weirdness

From: Denis Vlasenko (vda@port.imtp.ilyichevsk.odessa.ua)
Date: Sun Apr 21 2002 - 09:58:41 EST


I was curious about top showing unwieldy numbers for idle%
(start top, hold down [space] and you'll see).

top reads /proc/stat in order to get these percents.
A little script which cats /proc/stat continually
and greps for 'cpu ' yield:
cpu 39778 0 46829 337191
cpu 39778 0 46831 337192
cpu 39778 0 46833 337193
cpu 39778 0 46834 337194
cpu 39778 0 46835 337195
cpu 39778 0 46836 337196
cpu 39778 0 46838 337197 <<<
cpu 39778 0 46840 337196 <<<
cpu 39780 0 46840 337198
cpu 39780 0 46842 337199
cpu 39780 0 46843 337201
cpu 39782 0 46844 337201
cpu 39782 0 46846 337201
cpu 39782 0 46848 337201
cpu 39782 0 46849 337202
cpu 39782 0 46849 337204
cpu 39782 0 46850 337205
cpu 39782 0 46852 337205
cpu 39782 0 46853 337206
cpu 39783 0 46853 337207
cpu 39783 0 46855 337207 <<<
cpu 39784 0 46856 337206 <<<
...

Kernel: 2.4.18-pre6

--
vda
-
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 : Tue Apr 23 2002 - 22:00:28 EST