RE: The values of gettimeofday() jumps.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:[email protected]] 
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

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux