From: Daniel Walker <dwalker@mvista.com>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Clock running at half speed in 2.6.20?
Date: Fri, 16 Feb 2007 08:24:54 -0800 [thread overview]
Message-ID: <1171643094.3422.6.camel@imap.mvista.com> (raw)
In-Reply-To: <200702161428.l1GESUw9008969@freya.yggdrasil.com>
On Fri, 2007-02-16 at 22:28 +0800, Adam J. Richter wrote:
> My system clock runs at approximately half speed in
> linux-2.6.20, 2.6.20-git10 and 2.6.20-git11. That is, it takes about
> two hours for "date" to report that one hour has elapsed. "hwclock"
> returns the correct time, of course.
>
> I do not have this problem in linuux 2.6.18.1. I will try to
> narrow down the kernel version where this problem began.
>
> The motherboard in question is an asus p4v8000-x, running a
> 2.8GHz Pentium 4 that has two hyperthreads, which I suspect may be the
> problem. I am just guessing, but perhaps some piece of code thinks
> the two hyperthreads are separate CPU's receving twice as many clock
> interrupts total. I expect to try to some experimentation to check
> this theory.
>
> For what it's worth, I am running CONFIG_PREEMPT=y,
> CONFIG_PREEMPT_BKL=y, CONFIG_HZ=1000.
if you run,
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
it will tell you which hardware clock is being used by the kernel. You
can also run,
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
which will tell you which clocks are available on your system. You
switch clocks by echoing the name of a clock into "current_clocksource"
As an example, the following switches to the acpi_pm clocksource,
echo "acpi_pm"> /sys/devices/system/clocksource/clocksource0/current_clocksource
The hardware clock that your using could be running to slow. I would
recommend switching the hardware clock and re-check if the time is still
half speed.
Daniel
next prev parent reply other threads:[~2007-02-16 16:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 14:28 Adam J. Richter
2007-02-16 16:24 ` Daniel Walker [this message]
2007-02-16 18:26 Adam J. Richter
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=1171643094.3422.6.camel@imap.mvista.com \
--to=dwalker@mvista.com \
--cc=adam@yggdrasil.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®