From: Alok Kataria <akataria@vmware.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>,
the arch/x86 maintainers <x86@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Default HZ value for X86
Date: Tue, 28 Apr 2009 09:55:45 -0700 [thread overview]
Message-ID: <1240937745.3831.18.camel@alok-dev1> (raw)
In-Reply-To: <20090428003454.08d1660c@lxorguk.ukuu.org.uk>
On Mon, 2009-04-27 at 16:34 -0700, Alan Cox wrote:
> On Mon, 27 Apr 2009 16:07:10 -0700
> Alok Kataria <akataria@vmware.com> wrote:
>
> > Hi,
> >
> > I was wondering why do we still have the default HZ value as 1000 for
> > the x86 kernels.
> >
> > arch/x86/configs/i386_defconfig:CONFIG_HZ=1000
> > arch/x86/configs/x86_64_defconfig:CONFIG_HZ=1000
> >
> > With the highres timer implementation it was planned to move away from
> > relying on high timer interrupt frequency for applications requiring
> > precise high resolution timers.
>
> With the tickless kernel does this really matter any more ?
Agreed that with tickless it won't be an issue anymore when the system
is idle, but when the system is loaded the interrupts will still fire at
HZ frequency.
I ran a simple tight loop to check what kind of effect would the HZ
value have on system performance. This tight loop was run on a 2.6.29
kernel running under VMware looping till count of 6X10^9.
The one with HZ = 1000 took about 4m 24s, (264sec)
Total timer interrupts = 264405
And the one with HZ = 100 took about 4m 15s (255sec)
Total timer interrupts = 25593.
Please note that the system was booted in a single user mode and only
the minimal services were running to reduce any interference from any
other process. These numbers are averaged across 3 runs.
The cost of servicing an interrupt would be a little higher in the
virtualized environment, so I am not sure if it would have a similar
impact on a real hardware.
So this mail is more to understand if there could be any real downsides
with reducing the Hz value, FWIU it shouldn't affect the correctness of
the system right ?
> We might as
> well keep a logical 1000 for convenience and accuracy.
What is the accuracy factor that you are mentioning here ? i guess you
mean the precision of the timeouts, but that shouldn't matter much
right ?
Thanks,
Alok
>
> Alan
next prev parent reply other threads:[~2009-04-28 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 23:07 Default HZ value for X86 Alok Kataria
2009-04-27 23:34 ` Alan Cox
2009-04-28 16:55 ` Alok Kataria [this message]
2009-04-30 17:27 ` Artur Skawina
2009-04-30 18:24 ` Alok Kataria
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=1240937745.3831.18.camel@alok-dev1 \
--to=akataria@vmware.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox