linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
To: linux-kernel@vger.kernel.org
Cc: jwoithe@physics.adelaide.edu.au (Jonathan Woithe)
Subject: 2.6.16-rt11: Hires timer makes sleep wait far too long
Date: Tue, 4 Apr 2006 13:10:58 +0930 (CST)	[thread overview]
Message-ID: <200604040340.k343ewe3029930@auster.physics.adelaide.edu.au> (raw)

A few days ago I compiled and tested 2.6.16-rt11 on a Pentium3 desktop box
with the high resolution timer feature enabled.  It was set to a frequency
of 1000.  Things appeared to work fine so I tried exactly the same thing
on a 2.0 GHz Centrino-based laptop last night.

Unfortunately the laptop had an issue: whenever the system scripts called
sleep the system would wait for *way* longer than it should have.  Calling
  sleep 1
would give rise to a wait of as much as 45 seconds before the command 
prompt returned.

This was similar to an issue I had earlier (around 2.6.13) which was
associated with the new clock source infrastructure.  However, this time
around the timekeeping (as in the time of day reported by "date") did not
appear to run slow as it did in this previous fault condition.

I tested the situation under the four clock sources reported to be available
in /sys/devices/system/clocksource/clocksource0/:

  pit, jiffies, acpi_pm (the default), tsc

The actual amount of time waited by a "sleep 1" call from bash was tested
at least twice for each timer source:

  pit: 12 seconds, 29 seconds, 28 seconds
  tsc: 45 seconds, 45 seconds
  acpi_pm: 45 seconds, 29 seconds
  jiffies: 45 seconds, 32 seconds

I then rebuilt the 2.6.16-rt11 kernel without the HR-timers option selected.
After rebooting, running sleep worked exactly as expected.

I'm more than happy to run additional tests to try to narrow down the
problem.

Regards
  jonathan

             reply	other threads:[~2006-04-04  3:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-04  3:40 Jonathan Woithe [this message]
2006-04-04  4:26 ` 2.6.16-rt11: Hires timer makes sleep wait far too long Thomas Gleixner
2006-04-05  0:21   ` Jonathan Woithe
2006-04-06 10:28     ` Thomas Gleixner
2006-04-06 23:58       ` Jonathan Woithe
2006-04-10  7:27       ` 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=200604040340.k343ewe3029930@auster.physics.adelaide.edu.au \
    --to=jwoithe@physics.adelaide.edu.au \
    --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;
as well as URLs for NNTP newsgroup(s).