[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1241716053.6311.1514.camel@laptop>
Date: Thu, 07 May 2009 19:07:33 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Christoph Lameter <cl@...ux.com>
Cc: Alok Kataria <akataria@...are.com>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
the arch/x86 maintainers <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
"alan@...rguk.ukuu.org.uk" <alan@...rguk.ukuu.org.uk>
Subject: Re: [PATCH] x86: Reduce the default HZ value
On Thu, 2009-05-07 at 10:13 -0400, Christoph Lameter wrote:
> I think we need to reduce the general tick frequency to be as low as
> possible. With high resolution timers the tick frequency is just the
> frequency with which the timer interrupt disturbs a running application.
>
> Are there any benefits remaining from frequent timer interrupts? I would
> think that 60 HZ would be sufficient.
>
> It would be good if the kernel would be truly tickless. Scheduler events
> would be driven by the scheduling intervals and not the invokations of the
> scheduler softirq.
The only thing that's driven by the softirq is load-balancing, there's
way more to the scheduler-tick than kicking that thing awake every so
often.
The problem is that running the scheduler of off hrtimers is too
expensive. We have the code, we tried it, people complained.
Another random user that relies on the jiffy tick is
CLOCK_THREAD_CPUTIME_ID posix timers, although I'm planning to convert
that to hrtimers some time in the future.
We also use the scheduler tick to generate a somewhat coupled time
source from flaky TSCs -- reducing HZ decreases the accuracy. This is
something only fixable in hardware by providing a proper (and cheap)
high resolution clock source -- nehalem class machines have such a
thing, provided you stick to one (maybe two) sockets [s390, ppc64 and
sparc64 also rule].
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists