Skip site navigation (1)Skip section navigation (2)
Date:      12 Sep 2002 09:07:10 +1000
From:      Duncan Anker <d.anker@au.darkbluesea.com>
To:        "Kevin A. Pieckiel" <kpieckiel@smartrafficenter.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Buffer space
Message-ID:  <1031785630.7294.6.camel@duncan>
In-Reply-To: <20020911163826.GA93658@pacer.dmz.smartrafficenter.org>
References:  <20020911163826.GA93658@pacer.dmz.smartrafficenter.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2002-09-12 at 02:38, Kevin A. Pieckiel wrote:
> This has been discussed several times before.  Here's what I don't understand.
> The output of netstat -m:
> 
> # netstat -m
> 178/288/131068 mbufs in use (current/peak/max):
>         178 mbufs allocated to data
> 177/278/32767 mbuf clusters in use (current/peak/max)
> 628 Kbytes allocated to network (0% of mb_map in use)
> 0 requests for memory denied
> 0 requests for memory delayed
> 0 calls to protocol drain routines
> 
> 
> Now my config file has the following lines:
> 
> maxusers        512
> 
> options         NMBCLUSTERS=32767
> options         NMBUFS=131068

Have you got a reason for setting this so high? From your output above I
would think that what the kernel defaults to would be more than
adequate.

> 
> 
> And the output of netstat is:
> 
> # netstat
> Active Internet connections
> Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
> tcp4       0     48  comserver3.ssh         firewall.8581          ESTABLISHED
> udp4       0      0  localhost.ntp          *.*                    
> udp4       0      0  comserver3.ntp         *.*                    
> Active UNIX domain sockets
> Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
> bfc00000 (null) -750735760 -750735960 d37c0500        0        0        0 
> bfc00000 (null) -750735760 -750735960        0 d338ef00        0 d33aedc0
> bfc00000 (null) -750735760 -750735960        0 d338ef00        0 d33aee60
> bfc00000 (null) -750735760 -750735960        0 d338ef00        0 d33aef00
> bfc00000 (null) -750735760 -750735960        0 d338ef00        0        0
> bfc00000 (null) -750735760 -750735960 d3388e80        0 d33aed20        0
> 
> 
> I keep getting errors when trying to ping:
> 
> # ping 192.168.3.3
> PING 192.168.3.3 (192.168.3.3): 56 data bytes
> ping: sendto: No buffer space available
> ping: sendto: No buffer space available
> ^C
> 
> 
> What on earth is happening?

The docs warn about setting NMBCLUSTERS arbitrarily high, but I was
under the impression the machine just won't boot up. However, I've never
tried it.

Do you still get the ping problems if you leave those lines out of your
kernel? I don't think the number of mbufs is the issue here.

What do your logs say? Are you getting warning messages about running
out of mbufs anywhere?

> 
> Kevin
> 
> 
> "The meek shall inherit the Earth --
> The rest of us will go to the stars."
> -- Robert A. Heinlein
> 
> ---
> This message was signed by GnuPG.  E-Mail kpieckiel-pgp@smartrafficenter.org
> to receive my public key.  You may also get my key from wwwkeys.us.pgp.net;
> my ID is 0xF1604E92 and will expire on 01 January 2003.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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