[ntp:questions] too many recvbufs allocated (40)

Fei Wu fxw115 at yahoo.com
Wed Nov 3 22:02:30 UTC 2004


hi:

I am running ntp4.2.0 on FreeBSD 5.1, with a CDMA
clock as external clock. The CDMA clock works in
truetime mode, so I use the simplest ntp.conf
configuration:

server 127.127.5.0
fudge 127.127.5.0 refid cdma

When ntpd get started, it says: 
Nov  3 16:15:45 t103 ntpd[525]: ntpd 4.2.0 at 1.1161-r
Wed Nov  3 16:05:16 GMT 2004 (1)
Nov  3 16:15:46 t103 ntpd[525]: too many recvbufs
allocated (40)

And the ntpd occupied above 90% cpu time. I also run
it in debug mode, the results are:

t103# /usr/local/bin/ntpd -dd
ntpd 4.2.0 at 1.1161-r Wed Nov  3 16:05:16 GMT 2004 (1)
addto_syslog: ntpd 4.2.0 at 1.1161-r Wed Nov  3 16:05:16
GMT 2004 (1)
addto_syslog: set_process_priority: Leave priority
alone: priority_done is <2>
addto_syslog: precision = 2.452 usec
create_sockets(123)
bind() fd 4, family 2, port 123, addr 0.0.0.0, flags=8
flags for fd 4: 06
bind() fd 5, family 28, port 123, addr ::, flags=0
flags for fd 5: 06
bind() fd 6, family 2, port 123, addr 128.118.159.103,
flags=8
flags for fd 6: 06
bind() fd 7, family 28, port 123, addr
fe80:1::2c0:4fff:fe5e:7a20, flags=0
flags for fd 7: 06
bind() fd 8, family 28, port 123, addr ::1, flags=0
flags for fd 8: 06
bind() fd 9, family 28, port 123, addr fe80:3::1,
flags=0
flags for fd 9: 06
bind() fd 10, family 2, port 123, addr 127.0.0.1,
flags=0
flags for fd 10: 06
create_sockets: ninterfaces=7
interface 0:  fd=4,  bfd=-1,  name=wildcard, 
flags=0x8
              sin=0.0.0.0  bcast=0.0.0.0, 
mask=255.255.255.255
interface 1:  fd=5,  bfd=-1,  name=wildcard, 
flags=0x0
              sin=:: 
mask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
interface 2:  fd=6,  bfd=-1,  name=xl0,  flags=0x9
              sin=128.118.159.103 
bcast=128.118.159.111,  mask=255.255.255.240
interface 3:  fd=7,  bfd=-1,  name=xl0,  flags=0x1
              sin=fe80:1::2c0:4fff:fe5e:7a20 
mask=ffff:ffff:ffff:ffff::
interface 4:  fd=8,  bfd=-1,  name=lo0,  flags=0x5
              sin=::1 
mask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
interface 5:  fd=9,  bfd=-1,  name=lo0,  flags=0x5
              sin=fe80:3::1 
mask=ffff:ffff:ffff:ffff::
interface 6:  fd=10,  bfd=-1,  name=lo0,  flags=0x5
              sin=127.0.0.1  mask=255.0.0.0
init_io: maxactivefd 10
local_clock: at 0 state 0
getnetnum given 127.127.5.0, got 127.127.5.0 
key_expire: at 0
peer_clear: at 0 assoc ID 35484 refid INIT
refclock_open: fd 12 modem status 0x147
refclock_ioctl: fd 12 flags 0x1
newpeer: 127.0.0.1->127.127.5.0 mode 3 vers 4 poll 6 6
flags 0x21 0x1 ttl 0 key 00000000
getnetnum given 127.127.5.0, got 127.127.5.0 
report_event: system event 'event_restart' (0x01)
status 'sync_alarm, sync_unspec, 1 event,
event_unspec' (0xc010)
refclock_gtlin: fd 12 time 3308507647.823737 timecode
5 ERROR
clock TRUETIME(0) event 'clk_badformat' (0x02)
refclock_gtlin: fd 12 time 3308507647.823737
addto_syslog: too many recvbufs allocated (40)
addto_syslog: too many recvbufs allocated (40)
addto_syslog: too many recvbufs allocated (40)


Then I switched to ntp4.1.1b-a, the error messages
are: refclock_newpeer:clock type 5 invalid.
configuration of 127.127.5.0 failed.


I used to have no problem with this setup, but I do
not know why this happened recently. Appreciate if
anyone can help me on it.

regards

Fei

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the questions mailing list