Re: Idle time reported by top / 386 compiling kernel

Pavel Machek (pavel@elf.ucw.cz)
Sat, 21 Mar 1998 14:33:34 +0100


Hi!

> Hmm, yes, it looks like I can see it. But it looks like measurement
> error. TOP uses idle=100%-sum{times of all processes}. Fix top.

[And kernel has its own idle time reporting, it is really neccessary
to use that.]

Just to show how broken top is, try following program: Top reports 95%
idle time, while cpu is completely loaded in fact. Fix top.

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

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