Re: [PATCH for testing] Re: Decreasing stime running confuses top

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Frans Pop <elendil@...>, Ingo Molnar <mingo@...>
Cc: Chuck Ebbert <cebbert@...>, Luca Tettamanti <kronos.it@...>, Willy Tarreau <w@...>, LKML <linux-kernel@...>, Ilpo <ilpo.jarvinen@...>, Alexander E. Patrakov <patrakov@...>
Date: Monday, October 8, 2007 - 12:49 pm

Am Freitag, 5. Oktober 2007 schrieb Frans Pop:

Please correct me, if I am wrong, but here is my guess:

I think that the new code gives actually better numbers for kontact. Kontact 
is using the cpu for very short periods, right? The old code updates utime 
and stime via sampling at each timer tick. If kontact is scheduled based on 
the timer tick(lets say timeout and a low amount of other interrupts) it will 
start shortly after a tick. If kontact now manages to return the cpu before 
the next tick, the old code would not account anything for kontact.
The new code instead, should be correct in terms of overall runtime as it 
accounts the scheduled time in ns.

Why does it still shows numbers going backwards? I guess the sampled values 
for stime and utime change in flight between task_utime and task_stime are 
called. Lets say utime will be increased. Given the same sum_exec_runtime 
that means that the result of task_stime() will get smaller at this point. 

So Chucks patch only deals with sum_exec_runtime changing.


Ingo, do you have any opinion about how to proceed?

Christian
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
top displaying 9999% CPU usage, Frans Pop, (Wed Oct 3, 8:33 am)
Re: top displaying 9999% CPU usage, Alexander E. Patrakov, (Wed Oct 3, 9:03 am)
Re: top displaying 9999% CPU usage, Frans Pop, (Wed Oct 3, 10:04 am)
Re: top displaying 9999% CPU usage, Ilpo Järvinen, (Wed Oct 3, 10:43 am)
Re: top displaying 9999% CPU usage, Ilpo Järvinen, (Wed Oct 3, 10:51 am)
Re: Decreasing stime running confuses top, Chuck Ebbert, (Thu Oct 4, 3:32 pm)
Re: Decreasing stime running confuses top, Christian Borntraeger, (Thu Oct 4, 4:00 pm)
Re: Decreasing stime running confuses top, Chuck Ebbert, (Thu Oct 4, 4:21 pm)
[PATCH for testing] Re: Decreasing stime running confuses top, Christian Borntraeger, (Thu Oct 4, 5:10 pm)
Re: [PATCH for testing] Re: Decreasing stime running confuse..., Christian Borntraeger, (Mon Oct 8, 12:49 pm)
Re: [PATCH for testing] Re: Decreasing stime running confuse..., Christian Borntraeger, (Thu Oct 4, 6:31 pm)
Re: top displaying 9999% CPU usage, Jan Engelhardt, (Wed Oct 3, 8:52 am)