mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-kernel@vger.kernel.org, Anton Blanchard <anton@samba.org>,
	Tim Pepper <lnxninja@linux.vnet.ibm.com>,
	Paul McKenney <paulmck@linux.vnet.ibm.com>,
	John Stultz <johnstul@us.ibm.com>,
	Christoph Lameter <cl@linux-foundation.org>,
	Jamey Sharp <jamey@minilop.net>
Subject: Re: [RFC PATCH] Turn off the tick even when not idle
Date: Wed, 2 Sep 2009 14:30:43 -0700	[thread overview]
Message-ID: <20090902213000.GA7137@josh-work.beaverton.ibm.com> (raw)
In-Reply-To: <20090902200125.GA1851@ucw.cz>

On Wed, Sep 02, 2009 at 10:01:26PM +0200, Pavel Machek wrote:
> Hi!
> 
> > When a process does some number crunching for a while, without involving
> > the kernel, the kernel still interrupts it HZ times per second to figure
> > out if it has any work to do.  With a system dedicated to doing such
> > number crunching, the answer will almost always come up "no"; however,
> > the kernel takes a while figuring out all the "no"s from various
> > subsystems, every timer tick.  On my system, the timer tick takes about
> > 80us, every 1/HZ seconds; that represents a significant overhead.  80us
> > out of every 1ms, for instance, means 8% overhead.  Furthermore, the
> > time taken varies, and the timer interrupts lead to jitter in the
> > performance of the number crunching.
> 
> 8% overhead on hz=1000 is quite high --- what hw is that?

32-bit x86, ThinkPad T60p (work laptop).  I've observed similar
latencies on x86-64, and others have observed them on 64-bit powerpc.

On top of that, almost all of that 80us consists of variations on "Do I
have any work to do?  No?  OK then.".

> You should be able to get similar results with HZ=1, right?

Possibly, yes.  But I want good responsiveness when the system *does*
have work to do.

- Josh Triplett

  reply	other threads:[~2009-09-02 21:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-01 15:43 Josh Triplett
2009-09-01 19:56 ` Christoph Lameter
2009-09-01 16:46   ` jim owens
2009-09-01 18:08   ` Josh Triplett
2009-09-01 22:35     ` Christoph Lameter
2009-09-01 20:26       ` Josh Triplett
2009-09-02 20:01 ` Pavel Machek
2009-09-02 21:30   ` Josh Triplett [this message]
2009-09-03  5:15 ` Anton Blanchard

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=20090902213000.GA7137@josh-work.beaverton.ibm.com \
    --to=josh@joshtriplett.org \
    --cc=anton@samba.org \
    --cc=cl@linux-foundation.org \
    --cc=jamey@minilop.net \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lnxninja@linux.vnet.ibm.com \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=pavel@ucw.cz \
    /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

all inboxes | Powered by JetHome®