Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2005 17:53:45 +0100
From:      Max Laier <max@love2party.net>
To:        freebsd-hackers@freebsd.org
Subject:   Re: netstat info weird
Message-ID:  <200502141753.53718.max@love2party.net>
In-Reply-To: <Pine.BSF.4.62.0502141854510.89395@apache.metrocom.ru>
References:  <Pine.BSF.4.62.0502141854510.89395@apache.metrocom.ru>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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 numbers.  
It is possible to have correct stats in netstat -m output, but at the cost of 
an additional atomic operation for every allocation.  As these are very 
expensive (esp. on P4) it was decided to not care that much about this 
special statistics.

If the command above gives normal numbers (third column) the cause must be 
somewhere else.  You can try to build a debugging kernel and see if that 
turns anything up.

-- 
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCENehXyyEoT62BG0RAso7AJ9Z81T6fOJ0P7TrOgewf/vvQCJG9QCbBYAN
QwkeLYeK07fmNdxlcRCX+js=
=ZvAD
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502141753.53718.max>