lkml.org 
[lkml]   [1998]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: top, ps etc. lying about cpu idle [was Re: Cyrix 6x86MX and Centaur C6 CPUs in 2.1.102]
Hi!

> >top is broken broken broken.
>
> Thank you VERY much for volunteering to fix it! I'm anxiously awaiting
> your patch sent to procps-bugs@redhat.com

Last time I tried to do this, I got top-current and started fixing
it. Then I found out that it had even more fatal bugs than completely
bogus value in Idle: field.

If you want to show missbehaviour, try

void
main( void )
{
int i;
for (i=0; i<1000; i++)
system( "echo line >> /tmp/delme" );
}

You need to show 4th value in 'cpu' line in /proc/stat in idle %, not
100-sum of all tasks.

Pavel
--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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