public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Hoffmann <woho@woho.de>
To: Lee Revell <rlrevell@joe-job.com>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [-rt] time-related problems with CPU frequency scaling
Date: Tue, 18 Apr 2006 08:11:13 +0200	[thread overview]
Message-ID: <200604180811.13110.woho@woho.de> (raw)
In-Reply-To: <1145313317.16138.90.camel@mindpipe>

On Tuesday 18 April 2006 00:35, Lee Revell wrote:
> On Sun, 2006-04-16 at 20:41 +0200, Wolfgang Hoffmann wrote:
> > - if CPU frequency is low when jackd is started, it complains:
> >     "delay of 2915.000 usecs exceeds estimated spare
> >     time of 2847.000; restart ..."
> >   as soon as frequency is scaled up. Seems that jackd gets confused by
> > some influence of CPU frequency on timekeeping? No problems as long as
> > CPU frequency isn't scaled up, though.
>
> JACK still uses the TSC for timing and thus is incompatible with CPU
> frequency scaling.  You must use the -clockfix branch from CVS.

Ok, so that's a userspace issue? Thanks for the pointer, I'll try the CVS 
branch.

> > - values in /proc/sys/kernel/preempt_max_latency scales inverse to
> >     CPU frequency, i.e. 24us with CPU @ 800MHz and 12us with CPU @ 1,6GHz
>
> This is normal - code that takes 12us to run at 1.6 GHz will take 24us
> at 800MHz.  TANSTAAFL ;-)

So I misunderstood preempt_max_latency. I thought it to be absolute time, but 
it actually is codepath cycles, translated to microseconds using the current 
CPU frequency. Thanks for clarifying. 

Wolfgang

  reply	other threads:[~2006-04-18  6:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-16 18:41 [-rt] time-related problems with CPU frequency scaling Wolfgang Hoffmann
2006-04-17 22:35 ` Lee Revell
2006-04-18  6:11   ` Wolfgang Hoffmann [this message]
2006-04-18  6:32     ` Lee Revell
2006-04-20 18:39 ` Wolfgang Hoffmann

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=200604180811.13110.woho@woho.de \
    --to=woho@woho.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rlrevell@joe-job.com \
    --cc=tglx@linutronix.de \
    /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