mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
To: johnstul@us.ibm.com (john stultz)
Cc: jwoithe@physics.adelaide.edu.au (Jonathan Woithe),
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.14-rt21: slow-running clock
Date: Fri, 9 Dec 2005 12:49:59 +1030 (CST)	[thread overview]
Message-ID: <200512090219.jB92JxtV006757@auster.physics.adelaide.edu.au> (raw)
In-Reply-To: <1134094281.27601.11.camel@cog.beaverton.ibm.com> from "john stultz" at Dec 08, 2005 06:11:20 PM

> > > > > > I'm also wondering whether this might be related to one other thing I
> > > > > > noticed a week or so back (also reported to the list, but thus far no
> > > > > > followups). If I enabled the (new) "High resolution timers" feature (as
> > > > > > distinct from HPET), things like /usr/bin/sleep run for far longer than
> > > > > > they should irrespective of machine load.  For example, "sleep 1" from bash
> > > > > > actually delays 38 seconds, not 1 second as expected.
> > > > > 
> > > > > Does disabling the "High resolution timers" feature change the behavior
> > > > > all?
> > > > 
> > > > I should clarify.  Everything I've given you thus far has been with the
> > > > "high resolution timers" feature disabled.  Two or so weeks ago I tried
> > > > enabling it and that's when "sleep 1" took 38 seconds to complete. 
> > > > Disabling "high resoltion timers" at least made "sleep 1" behave somewhat
> > > > saner.  I don't know if having the high res timers enabled affects the
> > > > accuracy of the system clock however.  I'll test this tonight.
> > 
> > Some further information.  Today I enabled the Hi res timer option in
> > 2.6.14-rt21 with a resolution of 10000ns and did a full recompile.  Under
> > this kernel "sleep 1" did the right thing.  The slowdown in the c3tsc
> > clocksource and its selection ahead of more capable timers was still the
> > same in this kernel - in other words, enabling the hi res timer does not
> > change things.
> > 
> > I then changed the resolution to 1000ns (the default) and recompiled.  This
> > is the setting I used previously, but this time around "sleep 1" behaved
> > itself (c3tsc still ran slow though).  Thus for the moment it seems that the
> > sleep misbehaviour may have been due to some transient problem with the
> > configure system.  I'll test again once we've sorted out the c3tsc thing,
> > but it seems possible at this stage that the long "sleep" thing is not a bug
> > as such.
> 
> Ok, I went digging further and found the c3tsc selection is correct on
> your hardware. I'm just too used to my own laptop where the TSC varies
> with cpu speed and we lower the rating value. So that should be ok.

Ok, good.  That leaves the c3tsc slowdown as the only outstanding issue at
this stage.

> I'm now working on why we mis-compensate the c3tsc clocksource in the
> -RT tree. 

No problem.  Let me know when you have something to test or need further
info.

> As for the "sleep 1" bit, I'm not sure yet. This behavior does not
> change with the clocksources does it?

That I can't be sure of - I didn't know about the clock source selection at
the time I observed it.  As mentioned above, the tests I did this morning
with the hi res timer enabled did not exhibit the problem even though tests
about 2 weeks ago showed that enabling the hi res timer caused "sleep 1" to
sleep for 38 seconds (other "sleep" calls were similarly too long).  For now
I'm happy to wait until the c3tsc thing is fixed; once that's out of the way
I'll then retest everything to see if the sleep problem is reproducable.

Regards
  jonathan

  reply	other threads:[~2005-12-09  2:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-05  6:26 Jonathan Woithe
2005-12-05 19:42 ` john stultz
2005-12-07  3:39   ` Jonathan Woithe
2005-12-07  4:01     ` john stultz
2005-12-07  4:25       ` Jonathan Woithe
2005-12-07 22:54       ` Jonathan Woithe
2005-12-08  2:45         ` john stultz
2005-12-08  3:02           ` Jonathan Woithe
2005-12-08  3:22             ` john stultz
2005-12-08  4:11               ` Jonathan Woithe
2005-12-09  0:19               ` Jonathan Woithe
2005-12-09  2:11                 ` john stultz
2005-12-09  2:19                   ` Jonathan Woithe [this message]
2005-12-13  1:56                     ` john stultz
2005-12-14  1:22                       ` Jonathan Woithe
2005-12-15  1:41                         ` john stultz
2005-12-15  3:18                           ` Jonathan Woithe

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=200512090219.jB92JxtV006757@auster.physics.adelaide.edu.au \
    --to=jwoithe@physics.adelaide.edu.au \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®