Re: [ntp:questions] ntpd -q and driftfile

2011-03-24 Thread Terje Mathisen
Chris Albertson wrote: I'd bet any musician could do better than 0.1 sec. If you are playing piano and the timing of a note is off by as much as .1 sec it sounds like an error.MIDI is used to record musical performances and it uses a tick about every 10ms or 100 or 128 per second. That is

Re: [ntp:questions] ntpd -q and driftfile

2011-03-24 Thread prashant sherin
Hi All, Thanks for the discussion and suggestions. I accept there are disadvantages in syncing the local clock using ntpd -q. My only question was whether the drift file will be created/used/ updated by ntpd when it is used with -q option. Thanks and Regards, Prashant

Re: [ntp:questions] ntpd -q and driftfile

2011-03-24 Thread Chris Albertson
On Thu, Mar 24, 2011 at 1:45 AM, prashant sherin pvs...@yahoo.com wrote: Hi All, Thanks for the discussion and suggestions. I accept there are disadvantages in syncing the local clock using ntpd -q. My only question was whether the drift file will be created/used/ updated by ntpd when it is

Re: [ntp:questions] ntpd -q and driftfile

2011-03-23 Thread Hal Murray
oh, come off it. Your reaction time is nowhere near what ntp -q would give you. Using ntp -q run once every hour, and assuming say a 20PPM drift for the crystal, his clock would be out by less than a 100 ms due to the drifting, and your reaction time with your watch ( and wyour watch) are

Re: [ntp:questions] ntpd -q and driftfile

2011-03-23 Thread unruh
On 2011-03-23, Hal Murray hal-use...@ip-64-139-1-69.sjc.megapath.net wrote: oh, come off it. Your reaction time is nowhere near what ntp -q would give you. Using ntp -q run once every hour, and assuming say a 20PPM drift for the crystal, his clock would be out by less than a 100 ms due to

Re: [ntp:questions] ntpd -q and driftfile

2011-03-23 Thread Hal Murray
You can probably do better than that. That is for the reaction to something that you do not expect. Ie, you have decide that the event has occured and then send the messages to your finger to press. However for the timing, you know exactly when it is going to occur. You can get yourself into a

Re: [ntp:questions] ntpd -q and driftfile

2011-03-23 Thread Karel Sandler
On 23.3.2011 8:07, Hal Murray wrote: You can probably do better than that. That is for the reaction to something that you do not expect. Ie, you have decide that the event has occured and then send the messages to your finger to press. However for the timing, you know exactly when it is going

Re: [ntp:questions] ntpd -q and driftfile

2011-03-23 Thread Steve Kostecke
On 2011-03-22, bombjack bombjac...@gmail.com wrote: I am fully aware fo how ntpd should be used, i.e. 24/7/365, but that is not what I am asking for. As I stated above, I need to make sure the system clock is roughly (your wrist watch would do) the correct time ASAP during boot as other

Re: [ntp:questions] ntpd -q and driftfile

2011-03-23 Thread Chris Albertson
On Tue, Mar 22, 2011 at 11:12 PM, unruh un...@wormhole.physics.ubc.ca wrote: On 2011-03-23, Hal Murray hal-use...@ip-64-139-1-69.sjc.megapath.net wrote: You can probably do better than that. That is for the reaction to something that you do not expect. Ie, you have decide that the event has

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread prashant sherin
ntpd is intended to for continuous, not periodic running.  You are not using it correctly. Cheers, David Thanks for the quick reply. ntpd does allow us to run this way. From the ntpd man page: -q Exit the ntpd just after the first time the clock is set. This behavior mimics that of

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread David J Taylor
Hi, I would like to know if ntpd would use the driftfile specified in /etc/ ntp.conf file if it is run periodically using crontab with -q option as below: /usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -q -L eth0 I do not find any drift file being created at the specified location. Thanks

[ntp:questions] ntpd -q and driftfile

2011-03-22 Thread prashant sherin
Hi, I would like to know if ntpd would use the driftfile specified in /etc/ ntp.conf file if it is run periodically using crontab with -q option as below: /usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -q -L eth0 I do not find any drift file being created at the specified location. Thanks

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread prashant sherin
On Mar 22, 12:18 pm, unruh un...@wormhole.physics.ubc.ca wrote: On 2011-03-22, prashant sherin pvs...@yahoo.com wrote: ntpd is intended to for continuous, not periodic running. ?You are not using it correctly. Cheers, David Thanks for the quick reply. ntpd does allow us to run

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, prashant sherin pvs...@yahoo.com wrote: Hi, I would like to know if ntpd would use the driftfile specified in /etc/ ntp.conf file if it is run periodically using crontab with -q option as below: /usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -q -L eth0 I do not find any

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, David J Taylor david-tay...@blueyonder.co.uk.invalid wrote: Hi, I would like to know if ntpd would use the driftfile specified in /etc/ ntp.conf file if it is run periodically using crontab with -q option as below: /usr/sbin/ntpd -u ntp:ntp -p /var/run/ntpd.pid -g -q -L eth0

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, prashant sherin pvs...@yahoo.com wrote: ntpd is intended to for continuous, not periodic running. ?You are not using it correctly. Cheers, David Thanks for the quick reply. ntpd does allow us to run this way. From the ntpd man page: -q Exit the ntpd just after the

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread David J Taylor
He can do that if he wants to. That was why the -q option was designed into ntpd-- one time setting of the clock time. However it cannot create a drift file. If he wants a drift file then as you say, he must run it continuously. You could look at it that way, Bill, if all he needs is a one-off

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread prashant sherin
Thanks all for the suggestions and explanation. Regards, Prashant ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread Richard B. Gilbert
On 3/22/2011 2:56 AM, prashant sherin wrote: ntpd is intended to for continuous, not periodic running. You are not using it correctly. Cheers, David Thanks for the quick reply. ntpd does allow us to run this way. From the ntpd man page: -q Exit the ntpd just after the first time the

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread bombjack
On Mar 22, 4:20 pm, Richard B. Gilbert rgilber...@comcast.net wrote: On 3/22/2011 2:56 AM, prashant sherin wrote: ntpd is intended to for continuous, not periodic running.  You are not using it correctly. Cheers, David Thanks for the quick reply. ntpd does allow us to run

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread Chris Albertson
On Mon, Mar 21, 2011 at 11:38 PM, prashant sherin pvs...@yahoo.com wrote: Hi, I would like to know if ntpd would use the driftfile specified in /etc/ ntp.conf file if it is run periodically using crontab with -q option as below: That is a rather resource intensive way to run NTP. You use

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, David J Taylor david-tay...@blueyonder.co.uk.invalid wrote: He can do that if he wants to. That was why the -q option was designed into ntpd-- one time setting of the clock time. However it cannot create a drift file. If he wants a drift file then as you say, he must run it

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, bombjack bombjac...@gmail.com wrote: On Mar 22, 4:20?pm, Richard B. Gilbert rgilber...@comcast.net wrote: On 3/22/2011 2:56 AM, prashant sherin wrote: ntpd is intended to for continuous, not periodic running. ?You are not using it correctly. Cheers, David

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, Richard B. Gilbert rgilber...@comcast.net wrote: On 3/22/2011 2:56 AM, prashant sherin wrote: ntpd is intended to for continuous, not periodic running. You are not using it correctly. Cheers, David Thanks for the quick reply. ntpd does allow us to run this way. From the

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread David J Taylor
unruh un...@wormhole.physics.ubc.ca wrote in message news:slrniohmmc.6v5.un...@wormhole.physics.ubc.ca... [] ntpd -q is a replacemtn for ntpdate, which was typically run from cron, and he is doing, and it is an acceptable procedure if for example you do not want a daemon running which could

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, David J Taylor david-tay...@blueyonder.co.uk.invalid wrote: unruh un...@wormhole.physics.ubc.ca wrote in message news:slrniohmmc.6v5.un...@wormhole.physics.ubc.ca... [] ntpd -q is a replacemtn for ntpdate, which was typically run from cron, and he is doing, and it is an

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread unruh
On 2011-03-22, Chris Albertson albertson.ch...@gmail.com wrote: On Mon, Mar 21, 2011 at 11:38 PM, prashant sherin pvs...@yahoo.com wrote: Hi, I would like to know if ntpd would use the driftfile specified in /etc/ ntp.conf file if it is run periodically using crontab with -q option as below:

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread Richard B. Gilbert
On 3/22/2011 12:07 PM, bombjack wrote: On Mar 22, 4:20 pm, Richard B. Gilbertrgilber...@comcast.net wrote: On 3/22/2011 2:56 AM, prashant sherin wrote: ntpd is intended to for continuous, not periodic running. You are not using it correctly. Cheers, David Thanks for the quick

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread David J Taylor
unruh un...@wormhole.physics.ubc.ca wrote in message news:slrniohsae.ksv.un...@wormhole.physics.ubc.ca... [] I have seen the drift out by 400PPM at around the hour mark. ntpd massively overswings to correct any intial error in the clock ( say a few ms) , and then gradually settles back

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread David Woolley
oh, come off it. Your reaction time is nowhere near what ntp -q would give you. Using ntp -q run once every hour, and assuming say a 20PPM drift for the crystal, his clock would be out by less than a 100 ms due to the drifting, and your reaction time with your watch ( and wyour watch) are

Re: [ntp:questions] ntpd -q and driftfile

2011-03-22 Thread Richard B. Gilbert
On 3/22/2011 1:22 PM, unruh wrote: On 2011-03-22, David J Taylordavid-tay...@blueyonder.co.uk.invalid wrote: He can do that if he wants to. That was why the -q option was designed into ntpd-- one time setting of the clock time. However it cannot create a drift file. If he wants a drift file