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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christian Borntraeger <borntraeger@...>
Cc: Chuck Ebbert <cebbert@...>, Frans Pop <elendil@...>, Greg KH <greg@...>, <stable@...>, <linux-kernel@...>, Ingo Molnar <mingo@...>
Date: Tuesday, October 16, 2007 - 5:30 am

Christian Borntraeger wrote:

Hi,

I missed seeing this problem before, sorry about that. Thanks for the
link below, I now understand the problem.


I am trying to think out loud as to what the root cause of the problem
might be. In one of the discussion threads, I saw utime going backwards,
which seemed very odd, I suspect that those are rounding errors.

I don't understand your explanation below

Initially utime = 9, stime = 0, sum_exec_runtime = S1

Later

utime = 9, stime = 1, sum_exec_runtime = S2

We can be sure that S >= (utime + stime)

If S2 = S1 + delta, then as per our calculation

Initially

utime_proc = (utime * (S1))/(utime + stime)
           = nsec_to_clock_t(9 * S1 / 9)

later

utime_proc = nsec_to_clock_t(9 * S2/10)

Given that S >= (utime + stime), we should be fine.
The only problem I see is with rounding, like I mentioned before at two
places

1. Rounding at do_div() in task_utime()
2. Rounding in conversion from clock_t_to_cputime()

I have tried and not had any success reproducing the problem, could you
please help me with some pointers/steps to reproduce the problem?

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23 regression: top displaying 9999% CPU usage, Frans Pop, (Fri Oct 12, 4:31 pm)
Re: [stable] 2.6.23 regression: top displaying 9999% CPU usage, Christian Borntraeger, (Sun Oct 14, 4:36 pm)
Re: [stable] 2.6.23 regression: top displaying 9999% CPU usage, Christian Borntraeger, (Tue Oct 16, 4:29 am)
Re: [stable] 2.6.23 regression: top displaying 9999% CPU usage, Balbir Singh, (Tue Oct 16, 5:30 am)
Re: [stable] 2.6.23 regression: top displaying 9999% CPU usage, Christian Borntraeger, (Tue Oct 16, 6:34 am)
Re: [stable] 2.6.23 regression: top displaying 9999% CPU usage, Christian Borntraeger, (Tue Oct 30, 1:56 am)
Re: [stable] 2.6.23 regression: top displaying 9999% CPU usage, Christian Borntraeger, (Mon Oct 29, 4:33 pm)