From owner-freebsd-questions Thu Sep 23 6:21:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.criterion.canon.co.uk (mailhost.criterion.canon.co.uk [194.223.249.254]) by hub.freebsd.org (Postfix) with ESMTP id 7EA3D14EBF for ; Thu, 23 Sep 1999 06:21:35 -0700 (PDT) (envelope-from adamn@csl.com) Received: from csl.com (hermes.criterion.canon.co.uk [194.223.249.13]) by mailhost.criterion.canon.co.uk (8.8.8/8.7.3) with ESMTP id OAA00671 for ; Thu, 23 Sep 1999 14:10:57 +0100 (BST) Message-ID: <37EA2947.55E8658A@csl.com> Date: Thu, 23 Sep 1999 14:21:11 +0100 From: Adam Nealis Organization: Criterion Software, Ltd. X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.34 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions Subject: xntpd[122]: too many recvbufs allocated (30) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is more an ntp question than a FreeBSD one? By all means point me at the relevant dox! uname -a FreeBSD beast.criterion.canon.co.uk 2.2.8-STABLE\ FreeBSD 2.2.8-STABLE #0: Mon Sep 20 20:50:04 BST 1999\ root@:/usr/src/sys/compile/BEAST i386 So what's going on here with this syslog message, then? Is there a nice way to prevent this without resorting to hacking the sauce? Sep 23 01:04:11 beast xntpd[122]: too many recvbufs allocated (30) Doen't seem dangerous, but it's happening a lot since I made world on Monday. Only other thing to have changed is the number of ntp clients has increased by two (one Linux/RH 5.1 + a Win 98 box). I noticed these in /usr/src/usr.sbin/xntpd/ntp_io.c /* * recvbuf memory management */ #define RECV_INIT 10 /* 10 buffers initially */ #define RECV_LOWAT 3 /* when we're down to three buffers get more */ #define RECV_INC 5 /* get 5 more at a time */ #define RECV_TOOMANY 30 /* this is way too many buffers */ and on lines 836/837: syslog(LOG_ERR, "too many recvbufs allocated (%d)", total_recvbufs); So how come there are too many buffers being allocated. Or is it more that there aren't enough being de-allocated? Anyway, here's my /etc/ntp.conf (sans #'s) server ntp.uk.psi.net version 3 # stratum 2 broadcast 194.223.249.255 version 3 driftfile /etc/ntp.drift authenticate no and I thought I'd put in an ntptrace for good measure ;) beast:{adamn - xntpd}# ntptrace localhost: stratum 3, offset 0.000051, synch distance 0.24222 ntp1.uk.psi.net: stratum 2, offset -0.025158, synch distance 0.18443 ntp.psi.net: stratum 1, offset -0.088464, synch distance 0.00000, refid 'GPS' TIA, Adam. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message