lkml.org 
[lkml]   [2002]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: /proc/stat weirdness
Date
On 21 April 2002 13:04, Mark Hahn wrote:
> > I was curious about top showing unwieldy numbers for idle%
> > (start top, hold down [space] and you'll see).
>
> you need to be more explicit. unweildy? do you mean
> very large?

Yes, stuff like 1231687123,23%

> > 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 <<<
>
> your clock jumped back; do you have a via-based computer?

Nope. It's a HP Vectra, a loyal Intel based box.
Right now I ssh'ed to my NFS server, ran top and held [space] down.
I saw it there too. What do you see on your box?

I modified top to show 'raw' counter difference too:
0000001b 00000014 00000000 000001cb 5.3% user, 3.9% system, 0.0% nice, 90.7% idle
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and it's easy to notice that last number turns into ffffffff sometimes.
--
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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.044 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site