Messages in this thread | | | Subject | Re: [PATCH] x86: Reduce the default HZ value | From | Peter Zijlstra <> | Date | Thu, 07 May 2009 19:45:02 +0200 |
| |
On Thu, 2009-05-07 at 13:19 -0400, Christoph Lameter wrote: > On Thu, 7 May 2009, Peter Zijlstra wrote: > > > The problem is that running the scheduler of off hrtimers is too > > expensive. We have the code, we tried it, people complained. > > If you aggregate events into a single hrtimer event then it may work. > Wasnt that recently added?
No it won't, you want fairly decent involuntary preemption rate to keep the full service latency at a usable figure.
The problem with scheduling a hrtimer along with tasks is that at high context switch rates the timer will never fire but you do pay the overhead of programming the hardware each time, something that can be about as expensive as the whole context switch itself.
Although, I guess we could amortize that by not re-programming the timer when the existing timer is within a reasonable period (say 1ms) of the requested on.
| |