From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 14 16:53:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 560BD16A4CE for ; Mon, 14 Feb 2005 16:53:58 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id A644043D53 for ; Mon, 14 Feb 2005 16:53:57 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D0jTx-0004R5-00; Mon, 14 Feb 2005 17:53:57 +0100 Received: from [84.128.141.74] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1D0jTw-0002yV-00; Mon, 14 Feb 2005 17:53:56 +0100 From: Max Laier To: freebsd-hackers@freebsd.org Date: Mon, 14 Feb 2005 17:53:45 +0100 User-Agent: KMail/1.7.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1165951.9pb7kWRv05"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502141753.53718.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 Subject: Re: netstat info weird X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 16:53:58 -0000 --nextPart1165951.9pb7kWRv05 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 14 February 2005 17:02, Varshavchick Alexander wrote: > Hi all, > > I guess something is wrong here: > > netstat -m > > 4294961156 mbufs in use > ^^^^^^^^^^ > 4294967102/50176 mbuf clusters in use (current/max) > ^^^^^^^^^^ > 0/3/12800 sfbufs in use (current/peak/max) > 4192381 KBytes allocated to network > ^^^^^^^ > 0 requests for sfbufs denied > 0 requests for sfbufs delayed > 0 requests for I/O initiated by sendfile > 43 calls to protocol drain routines > > > It is 5.3-RELEASE, 2-cpu server Xeon box with 4G of RAM. > > As the other evidence that something is wrong with the server, the > system halts at random times (the only way is to press reboot button). > The are no messages in the server logs to the subject. > > Any hints are welcome. Thanks in advance. This is a statistic problem. "$vmstat -z | grep Mbuf" gives accurate numbe= rs. =20 It is possible to have correct stats in netstat -m output, but at the cost = of=20 an additional atomic operation for every allocation. As these are very=20 expensive (esp. on P4) it was decided to not care that much about this=20 special statistics. If the command above gives normal numbers (third column) the cause must be= =20 somewhere else. You can try to build a debugging kernel and see if that=20 turns anything up. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1165951.9pb7kWRv05 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCENehXyyEoT62BG0RAso7AJ9Z81T6fOJ0P7TrOgewf/vvQCJG9QCbBYAN QwkeLYeK07fmNdxlcRCX+js= =ZvAD -----END PGP SIGNATURE----- --nextPart1165951.9pb7kWRv05--