Re: 'global' rq->clock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arjan van de Ven
Date: Friday, May 2, 2008 - 3:09 am

On Fri, 02 May 2008 14:48:27 -0700 (PDT)
David Miller <davem@davemloft.net> wrote:


it's a sad affair indeed. On some systems it counts cycles, on other
systems it counts time. On most systems it stops while idle, on others
it keeps running. On most systems its not very synchronized between
packages, and on some systems it's not even synchronized between cores.

I'm not convinced TSC is the right thing for the scheduler in the first
place; on current x86 systems TSC counts "time" not "work done". Now of
course "time" is an approximation for "work done", but not a very good
one given the presence of what effectively is variable cpu speeds
(software CPU frequency control is only part of that; there's also the
finegrained hardware level frequency control as done by what marketing
people call "Intel Dynamic Acceleration technology"). [*]

I and others have talked to Peter about this already, and I'm sure we'll
talk more about it in the future as well.. at some point this part of
CFS needs to fundamentally be cleaned up. Since this gets into a debate 
about what fairness means ;(




[*] The converse is also true; cycles aren't a good representation of
time either; this makes cycle based profilers a bit iffy if you're
interested in where the system spends time rather than where it spends
cycles.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Horrendous Audio Stutter - current git, Parag Warudkar, (Thu May 1, 5:14 pm)
Re: Horrendous Audio Stutter - current git, Peter Zijlstra, (Fri May 2, 1:34 am)
Re: 'global' rq->clock, Arjan van de Ven, (Fri May 2, 3:09 am)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Fri May 2, 3:32 am)
Re: Horrendous Audio Stutter - current git, Peter Zijlstra, (Fri May 2, 3:35 am)
Re: Horrendous Audio Stutter - current git, Peter Zijlstra, (Fri May 2, 4:08 am)
Re: Horrendous Audio Stutter - current git, Parag Warudkar, (Fri May 2, 4:10 am)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Fri May 2, 4:37 am)
Re: Horrendous Audio Stutter - current git, Peter Zijlstra, (Fri May 2, 4:39 am)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Fri May 2, 4:45 am)
Re: Horrendous Audio Stutter - current git, Peter Zijlstra, (Fri May 2, 4:51 am)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Fri May 2, 5:06 am)
Re: Horrendous Audio Stutter - current git, Mike Galbraith, (Fri May 2, 5:09 am)
Re: Horrendous Audio Stutter - current git, Parag Warudkar, (Fri May 2, 5:21 am)
Re: Horrendous Audio Stutter - current git, Parag Warudkar, (Fri May 2, 5:22 am)
Re: Horrendous Audio Stutter - current git, Mike Galbraith, (Fri May 2, 5:37 am)
Re: Horrendous Audio Stutter - current git, Dhaval Giani, (Fri May 2, 6:21 am)
Re: Horrendous Audio Stutter - current git, Mike Galbraith, (Fri May 2, 8:02 am)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Fri May 2, 8:49 am)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Fri May 2, 11:53 am)
Re: Horrendous Audio Stutter - current git, Mike Galbraith, (Fri May 2, 12:27 pm)
Re: Horrendous Audio Stutter - current git, Mike Galbraith, (Fri May 2, 12:38 pm)
Re: 'global' rq-&gt;clock, David Miller, (Fri May 2, 2:48 pm)
Re: 'global' rq-&gt;clock, David Miller, (Fri May 2, 3:00 pm)
Re: 'global' rq-&gt;clock, Peter Zijlstra, (Fri May 2, 3:07 pm)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Sat May 3, 12:13 am)
Re: Horrendous Audio Stutter - current git, Mike Galbraith, (Sat May 3, 12:39 am)
Re: 'global' rq-&gt;clock, Ingo Molnar, (Sat May 3, 1:28 am)
Re: 'global' rq-&gt;clock, David Miller, (Sat May 3, 2:05 am)
Re: 'global' rq-&gt;clock, Ingo Molnar, (Sat May 3, 3:10 am)
Re: 'global' rq-&gt;clock, David Miller, (Sat May 3, 12:27 pm)
Re: 'global' rq-&gt;clock, David Miller, (Sat May 3, 12:28 pm)
Re: 'global' rq-&gt;clock, Ingo Molnar, (Sat May 3, 12:37 pm)
Re: 'global' rq-&gt;clock, Ingo Molnar, (Sat May 3, 12:39 pm)
Re: 'global' rq-&gt;clock, Benjamin Herrenschmidt, (Sat May 3, 3:30 pm)
Re: 'global' rq-&gt;clock, Ingo Molnar, (Sat May 3, 3:38 pm)
Re: 'global' rq-&gt;clock, David Miller, (Sat May 3, 4:04 pm)
Re: 'global' rq-&gt;clock, David Miller, (Sat May 3, 4:36 pm)
Re: 'global' rq-&gt;clock, Ingo Molnar, (Sat May 3, 4:38 pm)
Re: 'global' rq-&gt;clock, David Miller, (Sat May 3, 4:40 pm)
Re: 'global' rq-&gt;clock, Ingo Molnar, (Sat May 3, 4:47 pm)
Re: 'global' rq-&gt;clock, Benjamin Herrenschmidt, (Sat May 3, 7:22 pm)
Re: 'global' rq-&gt;clock, Peter Zijlstra, (Sun May 4, 5:12 am)
Re: Horrendous Audio Stutter - current git, Frans Pop, (Wed May 7, 1:26 am)
Re: Horrendous Audio Stutter - current git, Ingo Molnar, (Wed May 7, 1:32 am)