lkml.org 
[lkml]   [2002]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: 2.4.18 clock warps 4294 seconds
Hi,

On Jul 24, 9:37am, "Richard B. Johnson" <root@chaos.analogic.com> wrote:
> Do you have a time-daemon running that synchronizes your machine to
> some other?

NTP is running on both machines.

> Run this program as:
> ./xxx &>xxx.log &
>
> ...and see if your machine is really jumping.

I have effectively the same in the code already running. Once the
problem on the server started (yesterday), I added some sanity
(abbreviated for clarity):

waitinterP = rt_needbgwalk() ? &zerosec : &onesec;
...
sval = pselect(sockhi,&readset,&writeset,&exceptset,waitinterP,0);
...
#ifdef SHAKY_CLOCK
newnow = time((time_t*)0);
if ( newnow > now + 100 ) { /* Some H/W bug on some mboards? */
if ( warpcount % 1000 == 0 )
error("timewarp fwd %d: now %d new %d",warpcount,now,newnow);
warpcount++;
now += sval == 0 ? waitinterP->tv_sec : 0;
}
else {
....
now = newnow;
}
#else
now = time((time_t*)0);
#endif


Here's one snippet of output:

timewarp fwd 0: now 1027434974 new 1027439268
timewarp fwd 1000: now 1027434977 new 1027439271
timewarp fwd 2000: now 1027434978 new 1027439272


I know it's a tall order, but believe me, it really is happening.
I've always had it on my workstation, ever since I started using it,
first with a 2.4.7-10 kernel. It's happened many many times that I
would slide the mouse down to the bottom of the screen and the autohiding
taskbar would appear, clock to the right, and the next second the clock
would jump forward an hour and some minutes. I thought it was an obscure
bug in X or Gnome until it happened on the server.

As mentioned, the workaround suggested by the posting from 1999 seems
to be doing the trick (and the sanity code I added to my stuff handles
the problem by guessing), so it isn't a big issue for me, but I would
imagine other people with the same hardware are being bitten by it.

Thanks for your note.

-- Per G. Bilse

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

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.057 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site