lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1171643094.3422.6.camel@imap.mvista.com>
Date:	Fri, 16 Feb 2007 08:24:54 -0800
From:	Daniel Walker <dwalker@...sta.com>
To:	"Adam J. Richter" <adam@...drasil.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Clock running at half speed in 2.6.20?

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ