mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Liangchen Zheng" <zlc@dream.eng.uci.edu>
To: "'Lee Revell'" <rlrevell@joe-job.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: RE: The values of gettimeofday() jumps.
Date: Tue, 31 May 2005 14:59:44 -0700	[thread overview]
Message-ID: <004d01c5662c$0da4de70$85a4c380@dream.eng.uci.edu> (raw)
In-Reply-To: <1117332028.11397.1.camel@mindpipe>

It seems the problem is not caused by ntpd. 
The issue is still there after I stopped the ntpd daemon. I tested it
for a long time and found the clock drifted around every 1 second. The
distances of the clock drift are interleaved with both positive and
negative values. For example, if it goes 300ms forward, it will go
backward around 300ms at the next time. Because the occurrences of the
clock drift are so regular, I doubt it was caused only by one source.  I
am still wondering how I can discover it. 
	There were also 2 other suggestions I got from here the last
week. I will try them to see if it can solve my problem. 
	Thanks. 

Regards,
Liangchen 

-----Original Message-----
From: Lee Revell [mailto:rlrevell@joe-job.com] 
Sent: Saturday, May 28, 2005 7:00 PM
To: Liangchen Zheng
Subject: RE: The values of gettimeofday() jumps.

On Sat, 2005-05-28 at 19:00 -0700, Liangchen Zheng wrote:
> Yes. There is an ntp server in the LAN. Is the problem caused by this?
I
> saw some document said the clock drift issue can be solved by using
> ntpd.  
> So if the problem is caused by ntp, how can I solve it?
> Thanks a lot.

Well, if you are running ntpd on all of the machines (and not just
periodically running ntpdate), it should slew the clock gradually, so
you should not see any big jumps.

If all machines are running ntpd locally, and all are configured to use
the same NTP server, all clocks should be in sync all the time.

Lee


       reply	other threads:[~2005-05-31 21:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1117332028.11397.1.camel@mindpipe>
2005-05-31 21:59 ` Liangchen Zheng [this message]
2005-05-28 23:17 [patch 5/7] Remove duplicate file in Documentation/networking (drivers_net_wan_Kconfig) domen
2005-05-29  1:37 ` The values of gettimeofday() jumps Liangchen Zheng
2005-05-29  1:36   ` Lee Revell
2005-05-29  7:42   ` Arjan van de Ven
2005-06-02  1:18     ` Liangchen Zheng
2005-05-30  9:55   ` P

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='004d01c5662c$0da4de70$85a4c380@dream.eng.uci.edu' \
    --to=zlc@dream.eng.uci.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rlrevell@joe-job.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®