public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* System time warping around real time problem - please help
@ 2003-03-25 16:32 Fionn Behrens
  2003-03-25 17:07 ` Richard B. Johnson
  0 siblings, 1 reply; 19+ messages in thread
From: Fionn Behrens @ 2003-03-25 16:32 UTC (permalink / raw)
  To: linux-kernel


Hello all,


I have got an increasingly annoying problem with our fairly new (fall
'02) Dual Athlon2k+ Gigabyte 7dpxdw linux system running 2.4.20.
The only kernel patch applied is Alan Cox's ptrace patch.

To say it right away: the system is not overclocked or anything and
never was. It has decent cooling and is used as a combined workstation
and server.

I cant say exactly when it started but the system clock tends to begin
jumping around real time in an erratic manner, usually after about 12-48
hours of uptime. The maximum time jump is about 5 seconds back or forth
so the time is always "about" right.
To give you an example to visualize, you can watch asclock in X and see
the second clock-hand jumping like 3 seconds backwards, then 5 seconds
forth, 2 back and 1 forth or so within 2 or 3 seconds.
For a demonstration I wrote the following short example in python:

t = 0
while 1:
  n = time()
  if t > n: print t, ">", n
  t = n

Running this loop returned the following lines:

1048608745.61 > 1048608745.60
1048608745.63 > 1048608745.62
1048608745.65 > 1048608745.64
1048608748.23 > 1048608745.67
1048608748.27 > 1048608745.71
1048608748.30 > 1048608745.74
1048608748.34 > 1048608745.78
1048608748.42 > 1048608745.86
1048608748.47 > 1048608745.91
1048608748.52 > 1048608745.96
[----cut----]

So you see the time() on this system is constantly overtaking itself and
jumping back. It almost looks like two parallel time()s are there and it
switches back and forth between them.

I recompiled the kernel, I upgraded the BIOS to the latest version
available, I disabled ntp and tried some more I dont recall yet - no
success. Due to the erratic timer, working on the machine is no fun.
Software crashes are regularly - naturally. No programmer expects system
timers going back in time.

I am pretty desperate and I'd appreciate any hints on what to check.
I'll glady present any system detail that you might miss for a proper
analysis on request per email or on freenode (Fionn).

Thank you in advance,
   			F. Behrens (Not a subscriber of this list)
-- 
I believe we have been called by history to lead the world.
                                                 G.W. Bush, 2002-03-01

^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <20030325164014$031c@gated-at.bofh.it>]
* Re: System time warping around real time problem - please help
@ 2003-04-03 13:22 Fionn Behrens
  0 siblings, 0 replies; 19+ messages in thread
From: Fionn Behrens @ 2003-04-03 13:22 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Alan Cox, george anzinger


Ok, I had the system running about a week with "notsc" AND no power
management. No system crashes so far. Nevertheless, I keep getting some
kernel oopses like this from time to time. The call trace suggests that
there is still an issue with timing.

Apr  3 15:09:51 rtfm kernel:  printing eip:
Apr  3 15:09:51 rtfm kernel: 49199fd0
Apr  3 15:09:51 rtfm kernel: *pde = 00000000
Apr  3 15:09:51 rtfm kernel: Oops: 0000
Apr  3 15:09:51 rtfm kernel: CPU:    0
Apr  3 15:09:51 rtfm kernel: EIP:    0010:[<49199fd0>]    Tainted: P 
Apr  3 15:09:51 rtfm kernel: EFLAGS: 00210287
Apr  3 15:09:51 rtfm kernel: eax: 3e8c329f   ebx: cfd15fac   ecx:
054f7f1e   edx: 000e213f
Apr  3 15:09:51 rtfm kernel: esi: bffffa50   edi: 00000000   ebp:
bffffa58   esp: cfd15f9c
Apr  3 15:09:51 rtfm kernel: ds: 0018   es: 0018   ss: 0018
Apr  3 15:09:51 rtfm kernel: Process lmule (pid: 27969,
stackpage=cfd15000)
Apr  3 15:09:51 rtfm kernel: Stack: c0122b4b bffffa50 cfd15fac 00000008
3e8c329f 000e213f cfd14000 bffffa50 
Apr  3 15:09:51 rtfm kernel:        bffffab0 c01091ff bffffa50 00000000
408584d4 bffffa50 bffffab0 bffffa58 
Apr  3 15:09:51 rtfm kernel:        0000004e 0000002b 0000002b 0000004e
40655501 00000023 00200287 bffffa1c 
Apr  3 15:09:51 rtfm kernel: Call Trace:    [sys_gettimeofday+59/128]
[system_call+51/56]
Apr  3 15:09:51 rtfm kernel: 
Apr  3 15:09:51 rtfm kernel: Code:  Bad EIP value.


Do you have any more ideas regarding this issue? I'd hate trying to send
the board in for a check...

Regards,
	Fionn (not subscribed to lklm)

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2003-04-03 13:10 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-25 16:32 System time warping around real time problem - please help Fionn Behrens
2003-03-25 17:07 ` Richard B. Johnson
2003-03-25 17:17   ` Tim Schmielau
2003-03-25 18:12   ` Fionn Behrens
2003-03-25 18:29     ` Richard B. Johnson
2003-03-25 21:16   ` Fionn Behrens
2003-03-25 22:14     ` george anzinger
2003-03-25 22:55       ` Fionn Behrens
2003-03-26  0:13         ` Alan Cox
2003-03-26  2:28           ` george anzinger
2003-03-26 14:38             ` Alan Cox
2003-03-26 16:12               ` george anzinger
2003-03-26 17:06                 ` Richard B. Johnson
2003-03-26 18:12                   ` george anzinger
2003-03-26  3:11           ` Chris Friesen
2003-03-26 14:35             ` Alan Cox
2003-03-26 10:48           ` Fionn Behrens
     [not found] <20030325164014$031c@gated-at.bofh.it>
2003-03-26  9:31 ` Kay Diederichs
  -- strict thread matches above, loose matches on Subject: below --
2003-04-03 13:22 Fionn Behrens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox