Re: FIX top [was Re: strange idle%]

Stephen Lee (slee@softhome.net)
Fri, 14 May 1999 11:16:26 +0900


In article <19990511205655.E6442@bug.ucw.cz>,
Pavel Machek <pavel@bug.ucw.cz> wrote:
>
>Fix top. Top really lies about % idle: it computes it as 100-(%'s of
>processes it sees). That's WRONG. % idle should be get from % of idle
>process. Then, 100-(sum) could be reported as % unknown. Yes, %unknown
>happen: if gcc exits just before top runs, you have %'s for
>non-existent process and top does not see that %'s. It currently adds
>it to %idle which is wrong.

And it is strange on SMP-systems that you can get 200% busy but only
100% idle.

Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/