* Re: Dual Xeon Time skips with 2.6
[not found] <4WbFk-3iC-33@gated-at.bofh.it>
@ 2005-10-10 19:55 ` Robert Hancock
2005-10-11 11:24 ` Cornelius Thiele
2005-10-11 20:22 ` Bill Davidsen
0 siblings, 2 replies; 5+ messages in thread
From: Robert Hancock @ 2005-10-10 19:55 UTC (permalink / raw)
To: linux-kernel
Cornelius Thiele wrote:
> Hello,
>
> we have a dual xeon 3,0ghz system with hyperthreading running here with
> kernel 2.6.13 / 2.6.12 and are experiencing time skips. Meaning, when
> you enter 'date' in the shell the result will be different depending on
> which cpu the command is scheduled. The longer the system is up the
> greater the difference. The increase is approximately 5 minutes per day;
> as you can probably imagine this adds up to quite a lot over weeks and
> screws up our logging and any other program that needs timing or writes
> timestamp to disk somewhere.
>
> $> / # dmesg | grep time
> time.c: Using 3.579545 MHz PM timer.
> time.c: Detected 3000.236 MHz processor.
> Using local APIC timer interrupts.
> Detected 12.500 MHz APIC timer.
> time.c: Using PIT/TSC based timekeeping.
>
> [ ... w/o bogomips and pci timing... ]
>
> The CPUs seem to be put in sync only at system startup:
>
> dmesg | grep TSC
> CPU 1: Syncing TSC to CPU 0.
> CPU 1: synchronized TSC with CPU 0 (last diff 142 cycles, maxerr 1267
> cycles)
> [... for CPU1-4 ...]
>
> but they drift apart quite heavily after that.
>
> The server runs on a Tyan Mainboard, I'd be happy to provide any more
> infos if needed or try out some things, because we really need to have a
> server with only _one_ system time :)
You can probably avoid this problem by using "notsc" on the kernel
command line. It would seem that somehow the TSC drift is too small for
the kernel to notice on boot, but causes problems anyway..
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Dual Xeon Time skips with 2.6
2005-10-10 19:55 ` Dual Xeon Time skips with 2.6 Robert Hancock
@ 2005-10-11 11:24 ` Cornelius Thiele
2005-10-11 20:22 ` Bill Davidsen
1 sibling, 0 replies; 5+ messages in thread
From: Cornelius Thiele @ 2005-10-11 11:24 UTC (permalink / raw)
To: linux-kernel
Robert Hancock wrote:
> You can probably avoid this problem by using "notsc" on the kernel
> command line. It would seem that somehow the TSC drift is too small for
> the kernel to notice on boot, but causes problems anyway..
Thanks very much, that fixed it.
Greetings,
Cornelius Thiele
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dual Xeon Time skips with 2.6
2005-10-10 19:55 ` Dual Xeon Time skips with 2.6 Robert Hancock
2005-10-11 11:24 ` Cornelius Thiele
@ 2005-10-11 20:22 ` Bill Davidsen
1 sibling, 0 replies; 5+ messages in thread
From: Bill Davidsen @ 2005-10-11 20:22 UTC (permalink / raw)
To: Robert Hancock, Linux Kernel Mailing List
Robert Hancock wrote:
> You can probably avoid this problem by using "notsc" on the kernel
> command line. It would seem that somehow the TSC drift is too small for
> the kernel to notice on boot, but causes problems anyway..
>
This sounds familiar, although much larger than what I see, is it
possible for an Intel dual core CPU to do this as well? I sometimes see
very unintuitive timestamps on network stuff.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <4WbYJ-3Jt-17@gated-at.bofh.it>]
* Dual Xeon Time skips with 2.6
@ 2005-10-10 19:35 Cornelius Thiele
0 siblings, 0 replies; 5+ messages in thread
From: Cornelius Thiele @ 2005-10-10 19:35 UTC (permalink / raw)
To: linux-kernel
Hello,
we have a dual xeon 3,0ghz system with hyperthreading running here with
kernel 2.6.13 / 2.6.12 and are experiencing time skips. Meaning, when
you enter 'date' in the shell the result will be different depending on
which cpu the command is scheduled. The longer the system is up the
greater the difference. The increase is approximately 5 minutes per day;
as you can probably imagine this adds up to quite a lot over weeks and
screws up our logging and any other program that needs timing or writes
timestamp to disk somewhere.
$> / # dmesg | grep time
time.c: Using 3.579545 MHz PM timer.
time.c: Detected 3000.236 MHz processor.
Using local APIC timer interrupts.
Detected 12.500 MHz APIC timer.
time.c: Using PIT/TSC based timekeeping.
[ ... w/o bogomips and pci timing... ]
The CPUs seem to be put in sync only at system startup:
dmesg | grep TSC
CPU 1: Syncing TSC to CPU 0.
CPU 1: synchronized TSC with CPU 0 (last diff 142 cycles, maxerr 1267
cycles)
[... for CPU1-4 ...]
but they drift apart quite heavily after that.
The server runs on a Tyan Mainboard, I'd be happy to provide any more
infos if needed or try out some things, because we really need to have a
server with only _one_ system time :)
Greetings,
Cornelius Thiele
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-10-12 0:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4WbFk-3iC-33@gated-at.bofh.it>
2005-10-10 19:55 ` Dual Xeon Time skips with 2.6 Robert Hancock
2005-10-11 11:24 ` Cornelius Thiele
2005-10-11 20:22 ` Bill Davidsen
[not found] <4WbYJ-3Jt-17@gated-at.bofh.it>
[not found] ` <4WbYJ-3Jt-15@gated-at.bofh.it>
[not found] ` <4WyVi-5Xb-15@gated-at.bofh.it>
2005-10-12 0:18 ` Robert Hancock
2005-10-10 19:35 Cornelius Thiele
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox