mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Per Gregers Bilse <bilse@qbfox.com>
To: root@chaos.analogic.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.18 clock warps 4294 seconds
Date: Wed, 24 Jul 2002 18:46:44 +0100	[thread overview]
Message-ID: <200207241746.SAA02162@spirit.qbfox.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1020724092843.8629A-100000@chaos.analogic.com>

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


  reply	other threads:[~2002-07-24 17:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-24 12:35 Per Gregers Bilse
2002-07-24 13:37 ` Richard B. Johnson
2002-07-24 17:46   ` Per Gregers Bilse [this message]
2002-07-24 18:50     ` george anzinger
2002-07-25 10:01       ` Per Gregers Bilse
2002-07-25 10:36         ` Per Gregers Bilse
2002-07-25 17:34           ` george anzinger
2002-07-26 10:22             ` Per Gregers Bilse
2002-07-29 18:39               ` george anzinger
2002-07-31 11:22                 ` Per Gregers Bilse
2002-08-29 15:19                   ` Per Gregers Bilse

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=200207241746.SAA02162@spirit.qbfox.com \
    --to=bilse@qbfox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /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®