* delayacct regression in 2.6.24 git
@ 2007-11-02 13:41 Balbir Singh
2007-11-02 15:25 ` Ingo Molnar
0 siblings, 1 reply; 4+ messages in thread
From: Balbir Singh @ 2007-11-02 13:41 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Peter Zijlstra, Thomas Gleixner, linux kernel mailing list
Hi, Ingo,
I missed commit 75d4ef16a6aa84f708188bada182315f80aab6fa
"sched: fix delay accounting performance regression"
Without these changes, I find that delay accounting does
not work as expected, I see zeros in the field for virtual,delay
and count(s).
CPU count real total virtual total delay total
0 535861848 0 0
This breaks existing delay accounting behaviour.
Am I missing something?
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: delayacct regression in 2.6.24 git
2007-11-02 13:41 delayacct regression in 2.6.24 git Balbir Singh
@ 2007-11-02 15:25 ` Ingo Molnar
2007-11-02 16:28 ` Balbir Singh
0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2007-11-02 15:25 UTC (permalink / raw)
To: Balbir Singh; +Cc: Peter Zijlstra, Thomas Gleixner, linux kernel mailing list
* Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
> Hi, Ingo,
>
> I missed commit 75d4ef16a6aa84f708188bada182315f80aab6fa
> "sched: fix delay accounting performance regression"
>
> Without these changes, I find that delay accounting does
> not work as expected, I see zeros in the field for virtual,delay
> and count(s).
>
> CPU count real total virtual total delay total
> 0 535861848 0 0
>
>
> This breaks existing delay accounting behaviour.
>
> Am I missing something?
delay accounting was causing context-switch slowdown because it called
sched_clock() explicitly - but indeed my fix to that is wrong ...
how about reverting the change but also using rq->clock instead of
sched_clock()?
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: delayacct regression in 2.6.24 git
2007-11-02 15:25 ` Ingo Molnar
@ 2007-11-02 16:28 ` Balbir Singh
2007-11-03 8:31 ` Ingo Molnar
0 siblings, 1 reply; 4+ messages in thread
From: Balbir Singh @ 2007-11-02 16:28 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Peter Zijlstra, Thomas Gleixner, linux kernel mailing list
Ingo Molnar wrote:
> * Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
>
>> Hi, Ingo,
>>
>> I missed commit 75d4ef16a6aa84f708188bada182315f80aab6fa
>> "sched: fix delay accounting performance regression"
>>
>> Without these changes, I find that delay accounting does
>> not work as expected, I see zeros in the field for virtual,delay
>> and count(s).
>>
>> CPU count real total virtual total delay total
>> 0 535861848 0 0
>>
>>
>> This breaks existing delay accounting behaviour.
>>
>> Am I missing something?
>
> delay accounting was causing context-switch slowdown because it called
> sched_clock() explicitly - but indeed my fix to that is wrong ...
>
> how about reverting the change but also using rq->clock instead of
> sched_clock()?
Hmm... I think that might work, I find that schedule() calls
__update_rq_clock() which in turn calls sched_clock(), so it
might be a worthwhile optimization.
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: delayacct regression in 2.6.24 git
2007-11-02 16:28 ` Balbir Singh
@ 2007-11-03 8:31 ` Ingo Molnar
0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2007-11-03 8:31 UTC (permalink / raw)
To: Balbir Singh; +Cc: Peter Zijlstra, Thomas Gleixner, linux kernel mailing list
* Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
> >> Am I missing something?
> >
> > delay accounting was causing context-switch slowdown because it
> > called sched_clock() explicitly - but indeed my fix to that is wrong
> > ...
> >
> > how about reverting the change but also using rq->clock instead of
> > sched_clock()?
>
> Hmm... I think that might work, I find that schedule() calls
> __update_rq_clock() which in turn calls sched_clock(), so it might be
> a worthwhile optimization.
yep, that's the idea - in general rq->clock is updated for almost every
scheduling event so you can rely on it instead of calling sched_clock()
directly.
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-03 8:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02 13:41 delayacct regression in 2.6.24 git Balbir Singh
2007-11-02 15:25 ` Ingo Molnar
2007-11-02 16:28 ` Balbir Singh
2007-11-03 8:31 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox