Re: [stable] 2.6.23 regression: top displaying 9999% CPU usage

From: Frans Pop
Date: Mon Oct 29 2007 - 19:19:41 EST


On Monday 29 October 2007, Balbir Singh wrote:
> We'll also need this additional patch (untested),

OK. Both patches together do the trick. Gave it a nice long test run and got
no more weirdness.
Tested-by: Frans Pop <elendil@xxxxxxxxx>

> but in the long run I think the approach needs to be
>
> 1. Update stime and utime at the time of context switching -- keep it
> in sync with p->sum_exec_runtime
> 2. Keep track of system/user context at system call entry points

Feel free to send me a patch for testing when you have one.

Cheers,
Frans
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/