Re: 'global' rq->clock

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <a.p.zijlstra@...>, <efault@...>, <elendil@...>, <parag.warudkar@...>, <linux-kernel@...>, <guichaz@...>, <andi@...>
Date: Saturday, May 3, 2008 - 6:10 am

* David Miller <davem@davemloft.net> wrote:


yeah, will try something like that too.

the thing is, core kernel folks have to resist such pressures 
_somewhat_.

Architecture maintainers will put pressure on us from two directions: if 
a particular generic feature only helps _another_ architecture, they 
find it a nuisance and want it to be gone as much as possible.

If a particular feature helps them, they want it supported and 
default-enabled as much as possible. In fact, complaints come if a 
generic-looking feature shows up in one architecture only. (recent 
example: inlining optimizations ;-)

And you are totally right about sched_clock() being dead on accurate an 
globally synchronous on sparc64 - and you are right to find _any_ issue 
about it a nuisance. I totally envy you that sparc64's sched_clock() is 
so simple - it should have been like that on x86 years ago, if hw 
designers werent so impotent about it.

( although please note that the growing generalization that goes on
  _did_ find a subtle nohz problem on sparc64 early in the merge window,
  so it's not like these changes are totally useless to you. )

but it all goes in the other direction as well: many folks find 
endianness problems a nuisance on x86, many folks find TLB and explicit 
cache coherence complications a nuisance on x86 as well. The bus-to-phys 
complication which is an identity on x86. Etc. etc.

But the core kernel is a conscious and intelligent union of all 
architecture's needs, and often we maintain complications even if they 
make no sense on the most popular platform. I think it makes strategic 
sense because it keep the kernel truly generic and truly clean. It also 
keeps architectures honest: even today the x86 architecture is still not 
as clean as sparc64 for example.

so please be patient, we are working on it :)

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

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