Re: [ntp:questions] ntpd is spawning multiple processes

2013-07-02 Thread bunty21 . tiwari
Not helping.Is there any other issue..we are struggling since long.


On Friday, June 28, 2013 9:52:47 PM UTC+5:30, bunty21...@gmail.com wrote:
 Hi
 
 
 
 We are using cloud based Red hat 5.5 Tikanga OS. 
 
 After installing the ntp (ntp-4.2.2p1-15.el5_7.1
 
 and starting the ntpd process I can see multiple processes are running.
 
 
 
 I can see processesare adding after every hour,
 
 Below is a snapshot,
 
 [root@sandbox2 subsys]# ps -eaf | grep ntpd
 
 ntp  25589 1  0 15:05 ?00:00:00 ntpd -u ntp:ntp -p 
 /var/run/ntpd.pid -g
 
 root 30021 1  0 16:00 ?00:00:00 /sbin/ntpd -c 'timeout 1000' 
 -c sysinfo -c sysstats -c peers
 
 
 
 
 
 Syslogs are as below,
 
 
 
 Jun 28 16:00:01 sandbox2 ntpd[30017]: ntpd 4.2.2p1@1.1570-o Tue Oct 25 
 12:54:50 UTC 2011 (1)
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: precision = 4.000 usec
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
 0.0.0.0, in_classd=0 flags=9 fails: Address already in use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, 
 scope 0, addr ::, in6_is_addr_multicast=0 flags=1 fails: Address already in 
 use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, 
 scope 0, addr ::1, in6_is_addr_multicast=0 flags=1 fails: Address already in 
 use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, 
 scope 3, addr fe80::be76:4eff:fe10:11f8, in6_is_addr_multicast=0 flags=1 
 fails: Address already in use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, 
 scope 0, addr 2001:4801:7817:72:6a3e:ad9:ff10:18e4, in6_is_addr_multicast=0 
 flags=1 fails: Address already in use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, 
 scope 2, addr fe80::be76:4eff:fe10:18e4, in6_is_addr_multicast=0 flags=1 
 fails: Address already in use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
 127.0.0.1, in_classd=0 flags=5 fails: Address already in use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
 198.61.168.154, in_classd=0 flags=25 fails: Address already in use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
 10.177.8.134, in_classd=0 flags=25 fails: Address already in use
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: kernel time sync status 0040
 
 Jun 28 16:00:01 sandbox2 ntpd[30021]: getconfig: Couldn't open peers
 
 --Thanks

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] ntpd is spawning multiple processes

2013-07-02 Thread Harlan Stenn
bunty21.tiw...@gmail.com writes:
 Not helping.Is there any other issue..we are struggling since long.
  
  We are using cloud based Red hat 5.5 Tikanga OS. 
  
  After installing the ntp (ntp-4.2.2p1-15.el5_7.1
  
  and starting the ntpd process I can see multiple processes are running.

4.2.2 was released in June of 2006.

Since then there have been 2 *major* releases of NTP, 4.2.4 in December
of 2006, and 4.2.6 in December of 2009.

Your first choice for support for ntp-4.2.2p1-15.el5_7.1 should be thru
RedHat.

Otherwise, your choices for support for 4.2.2 are either free community
help from anybody who wants to look at that release of the source code,
or some other paid support.  The NTP Project does not offer free support
for either older releases of -stable or for vendor-modified code.

NTF does offer support contracts for older -stable versions of NTP.

-- 
Harlan Stenn st...@ntp.org
http://networktimefoundation.org - be a member!
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] step and stepout

2013-07-02 Thread DaveB
In article kqol1f$sut$1...@dont-email.me, david-
tay...@blueyonder.co.uk.invalid says...
 
 or you could use MRTG, which is what I use for these graphs:
   http://www.satsignal.eu/mrtg/performance_ntp.php
 
 

Hi Dave.

From some of those server names, I think you've been watching too much 
Scandanavian Crime drama on TV.  :-)

I realy must figure out how to use MRTG to get those graphs, I've never 
managed to make it work for me.   Do you have any tutorials, guidelines 
etc?

73.

Dave B (G8KBV/G0WBX)

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] ntpd is spawning multiple processes

2013-07-02 Thread Brian Utterback

Did you see my previous message?

You apparently have a cron job with a typo in it. Instead of running 
ntpq each hour, it is running ntpd. Those command line arguments are 
for ntpq, not ntpd. 



On 07/02/13 05:43, bunty21.tiw...@gmail.com wrote:

Not helping.Is there any other issue..we are struggling since long.


On Friday, June 28, 2013 9:52:47 PM UTC+5:30, bunty21...@gmail.com wrote:

Hi



We are using cloud based Red hat 5.5 Tikanga OS.

After installing the ntp (ntp-4.2.2p1-15.el5_7.1

and starting the ntpd process I can see multiple processes are running.



I can see processesare adding after every hour,

Below is a snapshot,

[root@sandbox2 subsys]# ps -eaf | grep ntpd

ntp  25589 1  0 15:05 ?00:00:00 ntpd -u ntp:ntp -p 
/var/run/ntpd.pid -g

root 30021 1  0 16:00 ?00:00:00 /sbin/ntpd -c 'timeout 1000' -c 
sysinfo -c sysstats -c peers





Syslogs are as below,



Jun 28 16:00:01 sandbox2 ntpd[30017]: ntpd 4.2.2p1@1.1570-o Tue Oct 25 12:54:50 
UTC 2011 (1)

Jun 28 16:00:01 sandbox2 ntpd[30021]: precision = 4.000 usec

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
0.0.0.0, in_classd=0 flags=9 fails: Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, scope 
0, addr ::, in6_is_addr_multicast=0 flags=1 fails: Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, scope 
0, addr ::1, in6_is_addr_multicast=0 flags=1 fails: Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, scope 
3, addr fe80::be76:4eff:fe10:11f8, in6_is_addr_multicast=0 flags=1 fails: 
Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, scope 
0, addr 2001:4801:7817:72:6a3e:ad9:ff10:18e4, in6_is_addr_multicast=0 flags=1 
fails: Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 10, port 123, scope 
2, addr fe80::be76:4eff:fe10:18e4, in6_is_addr_multicast=0 flags=1 fails: 
Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
127.0.0.1, in_classd=0 flags=5 fails: Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
198.61.168.154, in_classd=0 flags=25 fails: Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: bind() fd 16, family 2, port 123, addr 
10.177.8.134, in_classd=0 flags=25 fails: Address already in use

Jun 28 16:00:01 sandbox2 ntpd[30021]: kernel time sync status 0040

Jun 28 16:00:01 sandbox2 ntpd[30021]: getconfig: Couldn't open peers

--Thanks

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions



--
blu

Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live. - Martin Golding
---|
Brian Utterback - Solaris RPE, Oracle Corporation.
Ph:603-262-3916, Em:brian.utterb...@oracle.com

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] step and stepout

2013-07-02 Thread David Taylor

On 02/07/2013 11:20, DaveB wrote:
[]

Hi Dave.

 From some of those server names, I think you've been watching too much
Scandanavian Crime drama on TV.  :-)

I realy must figure out how to use MRTG to get those graphs, I've never
managed to make it work for me.   Do you have any tutorials, guidelines
etc?

73.

Dave B (G8KBV/G0WBX)


Dave,

I've actually visited all the places from which I have borrowed node 
names (and also visited some of the locations in Copenhagen where 
Borgen was made - there was a Cake Day in progress at the Town Hall 
- it just /had/ to be Denmark!).  I understand a very small amount of 
Swedish, and Norwegian and Danish are related (similar is too strong a 
word).  There's quite a lot of Scandinavian input to NTP, as you may know.


I've put all the bits you need into this Zip file:

  http://www.satsignal.eu/ntp/MRTG-scripts.zip

which allows you to monitor one (or more) NTP servers remotely.  There's 
a more general comment on using MRTG here:


  http://www.satsignal.eu/ntp/NTPandMRTG.html

and some general notes I found on the Internet here:

  http://www.satsignal.eu/mrtg/mrtg_notes.pdf

Do ask if you have any queries - better here than direct e-mail, though.
--
73,
David GM8ARV
Web: http://www.satsignal.eu

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] pps coming in, not received by ntpd

2013-07-02 Thread unruh
On 2013-07-02, David Taylor david-tay...@blueyonder.co.uk.invalid wrote:
 On 02/07/2013 02:14, Edward T. Mischanko wrote:


 folkert  wrote in message
 news:20130629175716.gm18...@belle.intranet.vanheusden.com...
 []

 A)
 server 127.127.28.0 minpoll 4
 fudge  127.127.28.0 refid NMEA
 server 127.127.28.1 minpoll 4 prefer
 fudge  127.127.28.1 refid PPS

 B)  Don't you need this for PPS?

 server 127.127.28.0 minpoll 3 prefer
 fudge 127.127.28.0 time2 0.275 refid NMEA
 server 127.127.22.0 minpoll 3
 fudge 127.127.22.0 refid PPS

 These are two different ways of getting the PPS timestamp into NTP.  As 
 I understand it:

 (A) requires that gpsd has some way of getting the PPS timestamps into 
 one of its shared memory segments.  The only time I've used this is with 

It is different. You need some code which reads and timestamps the
interrupt. I believe tht gpsd can do that. Then you need some way of
getting that timestamp to ntpd. that is what the shared memory does (it
is common piece of memory shared between two programs.) 
Now, you can use the kernel pps code, you can use shmpps ( which reads
the serial or parallel port interrupts and puts the timestamp into the
shared memory segment etc) 


 a program of Folkert's which worked on the Raspberry Pi to read the 
 timestamp when a GPIO pin changed in user-mode, and insert that 
 timestamp into gpsd's second segment (numbered 1).

 Aside: I couldn't find a description of using units 0 and 1 with the 
 type 28 shared memory driver.  It seems that the timestamps in unit 0 
 may be from the serial NMEA data, and those in unit 1 from the PPS data, 
 and hence the prefer on unit 1.  Perhaps someone could confirm this. 
 I looked at:

http://www.eecis.udel.edu/~mills/ntp/html/drivers/driver28.html

 (B) requires that the OS support PPS transitions, and could be tested 
 with a command such as Folkert gave:

This is another, kernel type code to timestamp the interrupt. As you say
it puts out the info into /dev/pps*



 # cat /sys/devices/virtual/pps/pps0/{assert,clear}
 1372528130.997131540#54
 1372528131.097120120#54

That is just a monitoring peek into the kernel module.



 I think most people try to use this with the OS kernel supporting PPS, 
 to give better results than with user-mode support.

To timestamp the pps, you have to have some module (ie kernel level)
timestamp process. shmpps, gpsd, the kernel pps, write your own,


 That's about the limit of my knowledge and could easily be wrong!

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] pps coming in, not received by ntpd

2013-07-02 Thread David Taylor

On 02/07/2013 15:18, unruh wrote:
[]

To timestamp the pps, you have to have some module (ie kernel level)
timestamp process. shmpps, gpsd, the kernel pps, write your own,


Thanks for the information, Bill.  My only additional comment is that 
the code to timestamp the PPS /can/ be in user-mode, although 
kernel-mode is preferable.  Additional Linux modules are /not/ required.

--
Cheers,
David
Web: http://www.satsignal.eu

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] pps coming in, not received by ntpd

2013-07-02 Thread unruh
On 2013-07-02, David Taylor david-tay...@blueyonder.co.uk.invalid wrote:
 On 02/07/2013 15:18, unruh wrote:
 []
 To timestamp the pps, you have to have some module (ie kernel level)
 timestamp process. shmpps, gpsd, the kernel pps, write your own,

 Thanks for the information, Bill.  My only additional comment is that 
 the code to timestamp the PPS /can/ be in user-mode, although 
 kernel-mode is preferable.  Additional Linux modules are /not/ required.

?? To timestamp the interrupt, you need kernel land. Ie, you need a
module. Now you can use one of the modules others have written or you
can write your own. But userland cannot get any sort of accuracy trying
to figure out when and if a hardware line has been pulled up or not.
I do not know what you mean by your last sentence. If you mean you are
happy with the modules that are supplied by others, fine. It is possible
that your own module might be faster than the supplied ones, in which
case you might want to use them.If you mean modules are not needed then
I beg to differ.
 

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] pps coming in, not received by ntpd

2013-07-02 Thread folkert
  []
  To timestamp the pps, you have to have some module (ie kernel level)
  timestamp process. shmpps, gpsd, the kernel pps, write your own,
 
  Thanks for the information, Bill.  My only additional comment is that 
  the code to timestamp the PPS /can/ be in user-mode, although 
  kernel-mode is preferable.  Additional Linux modules are /not/ required.
 
 ?? To timestamp the interrupt, you need kernel land. Ie, you need a
 module. Now you can use one of the modules others have written or you
 can write your own. But userland cannot get any sort of accuracy trying
 to figure out when and if a hardware line has been pulled up or not.

Well from userspace I get a jitter of only 10us on an rpi. Yes, I
totally agree that from kernel it would be better (in fact: is) but for
the moment it works for me :-) (too much hassle to recompile the kernel
and ntpd)



Folkert van Heusden

-- 
www.vanheusden.com/multitail - multitail is tail on steroids. multiple
   windows, filtering, coloring, anything you can think of
--
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] pps coming in, not received by ntpd

2013-07-02 Thread Rob
unruh un...@invalid.ca wrote:
 On 2013-07-02, David Taylor david-tay...@blueyonder.co.uk.invalid wrote:
 On 02/07/2013 15:18, unruh wrote:
 []
 To timestamp the pps, you have to have some module (ie kernel level)
 timestamp process. shmpps, gpsd, the kernel pps, write your own,

 Thanks for the information, Bill.  My only additional comment is that 
 the code to timestamp the PPS /can/ be in user-mode, although 
 kernel-mode is preferable.  Additional Linux modules are /not/ required.

 ?? To timestamp the interrupt, you need kernel land. Ie, you need a
 module. Now you can use one of the modules others have written or you
 can write your own. But userland cannot get any sort of accuracy trying
 to figure out when and if a hardware line has been pulled up or not.

You may think that, but gpsd does it that way and it works surprisingly
well.

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] pps coming in, not received by ntpd

2013-07-02 Thread Rob
folkert folk...@vanheusden.com wrote:
  []
  To timestamp the pps, you have to have some module (ie kernel level)
  timestamp process. shmpps, gpsd, the kernel pps, write your own,
 
  Thanks for the information, Bill.  My only additional comment is that 
  the code to timestamp the PPS /can/ be in user-mode, although 
  kernel-mode is preferable.  Additional Linux modules are /not/ required.
 
  ?? To timestamp the interrupt, you need kernel land. Ie, you need a
  module. Now you can use one of the modules others have written or you
  can write your own. But userland cannot get any sort of accuracy trying
  to figure out when and if a hardware line has been pulled up or not.
 
 You may think that, but gpsd does it that way and it works surprisingly
 well.

 I'm not entirely sure of that.
 On Linux it uses the kernel pps-api. So the kernel makes a note when an
 interrupt came in and gpsd requests these values from the kernel. That's
 why it opens /dev/ppsX

 Folkert van Heusden

It has been changed to support that, but it still also has the original
userspace mode that I wrote, and that can use a serial port status
line (e.g. DCD) and timestamp it in userspace, without any pps support
in the kernel.

Rob

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


[ntp:questions] Another invalid leap second

2013-07-02 Thread Chris Adams
I have a Linux (Fedora 18) system running ntp-4.2.6p5-8.fc18.x86_64.  I
have a GPS receiver connected (old Trimble SVeeSix in TSIP mode).  I
have some pool servers plus my ISPs servers configured.  After some
discussion on a mailing list, I checked, and I got a leap second Sunday.
I see this in my log (my local time is CDT, UTC-0500):

Jun 30 03:03:04 disk ntpd[1150]: 0.0.0.0 411a 0a leap_disarmed
Jun 30 03:04:40 disk ntpd[1150]: 0.0.0.0 412a 0a leap_disarmed
Jun 30 18:59:59 disk kernel: [2575160.498722] Clock: inserting leap second 
23:59:60 UTC
Jun 30 19:05:48 disk ntpd[1150]: 0.0.0.0 4118 08 no_sys_peer
Jun 30 19:06:23 disk ntpd[1150]: 0.0.0.0 4413 03 spike_detect +0.996853 s
Jun 30 19:15:26 disk ntpd[1150]: 0.0.0.0 441c 0c clock_step +0.59 s
Jun 30 19:15:26 disk ntpd[1150]: 0.0.0.0 4415 05 clock_sync
Jun 30 19:15:27 disk ntpd[1150]: 0.0.0.0 c418 08 no_sys_peer

Where did the leap second come from?
-- 
Chris Adams c...@cmadams.net

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] Another invalid leap second

2013-07-02 Thread Larry Sheldon

On 7/2/2013 5:55 PM, Chris Adams wrote:


Where did the leap second come from?


There is traffic on NANOG about it--I didn't grok the details but I 
understood there are patches out for it.




--
Idioten aangeboden. Gratis af te halen.
h/t Dagelijkse Standaard

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] Another invalid leap second

2013-07-02 Thread E-Mail Sent to this address will be added to the BlackLists
Chris Adams wrote:
 I have a Linux (Fedora 18) system running ntp-4.2.6p5-8.fc18.x86_64.  I
 have a GPS receiver connected (old Trimble SVeeSix in TSIP mode).  I
 have some pool servers plus my ISPs servers configured.  After some
 discussion on a mailing list, I checked, and I got a leap second Sunday.
 I see this in my log (my local time is CDT, UTC-0500):
 Jun 30 03:04:40 disk ntpd[1150]: 0.0.0.0 412a 0a leap_disarmed
 Jun 30 18:59:59 disk kernel: [2575160.498722] Clock: inserting leap second 
 23:59:60 UTC
 Where did the leap second come from?

Either a file on your PC, or updtream ntp servers you use?

 Probably some Linux machine running a ancient version of NTP
  for no _good_ reason, as they so often do.

   I love policies that won't let you run the current version,
that has hundreds (thousands ?) more bugs fixed over the last decade,
than the version that is in a distro,
and policy won't let it be replaced, removed, or fixed.

 {Tough cookies to IT fossils that can't adapt.}


I see Fedora 18 is using ntp 4.2.6p5 which is the current stable (2011Dec)



http://mailman.nanog.org/pipermail/nanog/2013-July/subject.html#start

A bogus leap second happened last year too,
 supposedly less were guilty this year.
http://www.maths.tcd.ie/~dwmalone/time/leaps/


2013Jun30 was the next time slot to add one if it was needed,
 however none was officially added.

http://www.usno.navy.mil/USNO/earth-orientation/leap-second-announcement
Block Quote Leap Second Announcement
Important Announcement
No leap second will be introduced at the end of June 2013.
The last leap second was positive and was introduced in UTC at the end of June 
2012.
IERS Bulletin C (Current Leap Second Announcement)
/ Block Quote

The most recent file, can be found at:
ftp://time.nist.gov/pub/
ftp://tycho.usno.navy.mil/pub/ntp/


NTP leap second bugs:
http://bugs.ntp.org/buglist.cgi?content=leapproduct=ntporder=bug_id%20DESC


-- 
E-Mail Sent to this address blackl...@anitech-systems.com
  will be added to the BlackLists.

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] Another invalid leap second

2013-07-02 Thread E-Mail Sent to this address will be added to the BlackLists
BlackLists wrote: Chris Adams wrote:
 discussion on a mailing list, I checked, and I got a leap second Sunday.
 Jun 30 18:59:59 disk kernel: [2575160.498722] Clock: inserting leap second 
 23:59:60 UTC
 Where did the leap second come from?

 A bogus leap second happened last year too,
  supposedly less were guilty this year.
 http://www.maths.tcd.ie/~dwmalone/time/leaps/

Perhaps last years cause was in the windows port of ntp?
http://bugs.ntp.org/show_bug.cgi?id=2159


-- 
E-Mail Sent to this address blackl...@anitech-systems.com
  will be added to the BlackLists.

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] Another invalid leap second

2013-07-02 Thread Doug Calvert
If ntp has a valid and  up to date leap file configured in ntp.conf
are rogue leap announcements disregarded?
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions