Timekeeping in Linux question ...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Timekeeping in Linux question ...
# 22  
Old 04-23-2011
It depends on what's in the database, and what kind of database I suppose, but I don't think it's that important.
# 23  
Old 04-23-2011
There are thousands of NTP servers you can try: pool.ntp.org: the internet cluster of ntp servers

You're getting apples and oranges confused. Imagine two identical cars driving on a very long but perfectly staight track. Driver one is simply going 100 MPH and is ignoring driver two. Driver two is trying his best to stay exactly even with driver one. If car one pulls a bit ahead, driver two gently increases speed. If car two pulls a bit ahead, driver two just slows down a bit. With a decent driver in car two, this is not a great trick. Now consider the RPM's on the front tires. The front tires are both cars are going to be spinning very close to the same rate. But how fast is that? Now we need to build a device to display the RPM's of the tires to a human. And if the human is standing beside the road somewhere its even harder to build that RPM display. While the display may not be super accurate, we are sure that the tires are spinning very close to the same rate. Car one is an NTP server. Car two is an NTP client. The tires are the system clocks. That RPM meter is the display clock you don't like.
# 24  
Old 04-24-2011
Perderabo,

I get your example with two car, however, I have to have some trust in a meter, as the meter is all what I see in a car. And it appears at present, that it is all I have to evaluate the time, (rpm) in your example. How can I know that it works as it should, if the meter doesn't show a correct info by definition. Can you see what I mean? How can I say that I trust the NTP server, if my RPM meter is defective?

Breaking away from car thing, how can I tell if the NTP server does a good job? And by the way, there are many NTP servers... So is there one "super NTP" server that feeds its time reading to all other? Should I say "root" NTP server, or may be reference NTP server. Do you prefer some servers over other? Or I'm too concerned about it?

I assume that close we on a net to a server, then better time reading we get, as less delay is introduced by a network.
# 25  
Old 04-24-2011
For better or worse it is very easy to be sure that the tires are spinning at the same rate but much harder to know what the rate is. In the clock example, you need a piece of code to read the clock, convert to a format that you understand, and display it to you. Sadly, all of that takes time. How much depends on how busy the system is. This is where the .2 second come from.

Ideally, you should pick 10 servers or so that seem more or less close to you and tell NTP about all of them. NTP will compare them and separate the false-tickers from the true-chimers (and that is what the NTP docs call them). Network delay is not a big problem. A NTP reply includes the time the request was recieved and the time the reply was sent. The client calculates and compensates for in-transit time.

These days for a few thousand dollars you can get a GPS clock with an ovenized oscillator. You do need to put the antenna on the roof so it gets a good view of the satellites. The satellites know the time to within 30 nanoseconds or so. A decent GPS clock will be accurate to a microsecond or two all the time. We have a few of these and they work pretty well. Just goggle for GPS clocks.
This User Gave Thanks to Perderabo For This Post:
# 26  
Old 04-26-2011
wow, 30 nanoseconds is pretty impressive! Thank for the input, I could never imagine that GPS could be used for precise timekeeping, it is an amazing technology, isn't it? WOW! It practically means, that all Internet timekeeping is done through the space! I could imagine to myself something like an atomic clock, but going with GPS is a wonderful idea!
# 27  
Old 04-26-2011
There's a few of possible time sources out there, not just GPS (which, incidentially, works because it sends the current time). There are receivers for radio transmitted time (like those radio controlled clocks), where the time source at the senders side is (usually) an atomic clock, which in turn present themselves as a Stratum-1 NTP server.
# 28  
Old 04-26-2011
Quote:
Originally Posted by newlinuxuser1
wow, 30 nanoseconds is pretty impressive! Thank for the input, I could never imagine that GPS could be used for precise timekeeping
More like GPS requires pretty precise timekeeping to measure the minute differences between signals. Getting a convenient clock beat from them is a handy side-effect.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linux question on directories..

Hi, First server every thing is working but keeps crashing so to be on the safe side created second server and moved all the files. But I notice there is a " dot " at the end. See below. Not sure what that means. Also getting 403 on Apache. Please see below. Thanks you so much. ls -l... (4 Replies)
Discussion started by: samnyc
4 Replies

2. UNIX for Dummies Questions & Answers

New to Linux scripting question

hello i am new to scripting and Linux in general. i am going to school for sys admin and i will need at least some knowledge on scripting. i have been so far ok with learning basic scripting now i am stuck. with a assignment that i was given it was create a script that will tell you if a number... (2 Replies)
Discussion started by: dragonwrench
2 Replies

3. Linux

Question on Linux Binary

Hi All, On linux system copied a /bin/kill to /bin/killlatest, when i tried to kill a command using /bin/killlatest it is failing with below errors /bin/killlatest 12345 ERROR: no "killlatest" support. Please help on this.. My ideas is to write a wrapper over killl command to find out who... (5 Replies)
Discussion started by: sridhar8183
5 Replies

4. UNIX for Advanced & Expert Users

Linux fdisk question (Oracle Enterprise Linux)

OS: Oracle Enterprise Linux 6.2 Hypervisor: VMWare workstation 9 I created a VM and attached a 7gb virtual disk to it. Using fdisk , I partioned the disk like below. The filesystems mounted on this is working fine. But I am seeing the message Partition n does not end on cylinder boundary.... (2 Replies)
Discussion started by: kraljic
2 Replies

5. Shell Programming and Scripting

New to Linux, have some simple question

Hi All, Here is the problem: I have done a c++ code in Visual Studio 2010, it's a simple project that only have one main function which takes 2 parameters: an integer and a file that stores data. Now, I am asked to write a shell script in linux to execute my main function. I asked my professor... (1 Reply)
Discussion started by: EasonRU
1 Replies

6. UNIX for Dummies Questions & Answers

linux installation question?

Hi I accidentally installed another operating system after I had installed Linux and now I can no longer access your Linux system.any solution? Thanks (1 Reply)
Discussion started by: adam25bc
1 Replies

7. Linux

(ASK) Question about linux network...

hi all, im linux nubie n want to ask, 1. how to access the windows pc? if from windows to windows, we can use : start-run-\\192.168.1.1\e$ now, how about from linux (fedora) n want to access to windows drive? if I use ssh from linux to windows, ssh 192.168.6.171 ssh: connect... (6 Replies)
Discussion started by: busoh.sensen
6 Replies

8. UNIX for Dummies Questions & Answers

Linux LVM Question

I've three partitions on /dev/sda: sda1, sda2 sda3. There is FREE space between sda2 and sda3 and sda3 ends on the last sector. sda2 and sda3 have the same number of sectors allocated and so are the exact same size. /dev/sda2 is already part of the VG VolGroup. However, what puzzles me is that... (0 Replies)
Discussion started by: Devyn
0 Replies

9. UNIX for Dummies Questions & Answers

Timekeeping problem

Hello everyone I am currently exploring the different time keeping commands in linux. and I having a lot of trouble figuring out the advantages and disadvantages of using daytime command rdate and hwclock and such commands. Can someone link me to good articles or just give me the answer (5 Replies)
Discussion started by: maniac173
5 Replies

10. UNIX for Dummies Questions & Answers

linux newbie question...

I'm running Vector Linux on this computer, and everythign works fine, except for the NIC. I run netconfig, and then when I reboot it says: DC21140 at 0x9400(PCI BUS 0, device 11) h/w address 00:00:C0:2E:13:dC, and reqquires IRQ 9(provided by PCI BIOS) Setting up net subsytems. ... (5 Replies)
Discussion started by: Corey
5 Replies
Login or Register to Ask a Question