From: Frank Rowand <frank.rowand@am.sony.com>
To: Tim Blechmann <tim@klingt.org>
Cc: "linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>,
wg@grandegger.com
Subject: Re: scheduling latency & CONFIG_HZ
Date: Fri, 20 Nov 2009 18:32:51 -0800 [thread overview]
Message-ID: <4B075153.1090103@am.sony.com> (raw)
In-Reply-To: <hdf0mo$6gj$1@ger.gmane.org>
On 11/11/09 10:44, Tim Blechmann wrote:
> i am curious, do the values of CONFIG_HZ and CONFIG_NO_HZ somehow affect
> the scheduling latency (as reported by cyclictest) of a
> real-time/vanilla kernel, especially when CONFIG_HIGH_RES_TIMERS is enabled?
>
> thnx, tim
>
Some anecdotal info...
From: http://lkml.indiana.edu/hypermail/linux/kernel/0906.2/03853.html
"I have disabled CONFIG_NOHZ long ago, since it really influences latency."
>From http://www.mail-archive.com/linux-rt-users@vger.kernel.org/msg02300.html
"With CONFIG_NO_HZ=y or CONFIG_PPC_BESTCOMM_GEN_BD=y the latency
increases by approx. 100..150us, each."
The thread goes on for a while, but I don't think the CONFIG_NO_HZ
question was resolved.
Looking at some old source (2.6.23.17-rt14), there was at least one longer
IRQ disabled path if CONFIG_NO_HZ:
void __noinstrument irq_enter(void)
{
#ifdef CONFIG_NO_HZ
int cpu = smp_processor_id();
if (idle_cpu(cpu) && !in_interrupt())
tick_nohz_stop_idle(cpu);
#endif
...
#ifdef CONFIG_NO_HZ
if (idle_cpu(smp_processor_id()))
tick_nohz_update_jiffies();
#endif
}
But this code is different in later kernels. As of 2.6.29.4-rt19, it was:
irq_enter()
...
if (idle_cpu(cpu) && !in_interrupt()) {
__irq_enter();
tick_check_idle(cpu);
// tick_check_idle() contains:
#ifdef CONFIG_NO_HZ
tick_nohz_stop_idle(cpu);
tick_nohz_update_jiffies();
tick_nohz_kick_tick(cpu);
- Frank Rowand
Sony Corporation of America
prev parent reply other threads:[~2009-11-21 2:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-11 18:44 scheduling latency & CONFIG_HZ Tim Blechmann
2009-11-13 20:37 ` Thomas Gleixner
2009-11-14 10:48 ` Tim Blechmann
2009-11-21 2:32 ` Frank Rowand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B075153.1090103@am.sony.com \
--to=frank.rowand@am.sony.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=tim@klingt.org \
--cc=wg@grandegger.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.