Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2007 08:08:40 +0800
From:      "Adrian Chadd" <adrian@freebsd.org>
To:        "Marc G. Fournier" <scrappy@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: What triggers "No Buffer Space Available"?
Message-ID:  <d763ac660705031708s33e71f42x219c82a8f2b2cec4@mail.gmail.com>
In-Reply-To: <5C07C592A1A1F97E055965A6@ganymede.hub.org>
References:  <5C07C592A1A1F97E055965A6@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/05/07, Marc G. Fournier <scrappy@freebsd.org> wrote:

> 'k, all I'm looking at right now is the Unix Domain Sockets, and the output of
> netstat -> sockstat is growing since I first started counting both ..

Hm! What about graphing them? It shouldn't be hard to write an mrtg
shell script data source to graph these things on your different
servers to compare/contrast. You could graph different chunks of the
netstat -m output along with the stuff below.

Ever played with munin, btw? The exercise would be to find other stuff
on the system to correlate against your apparent unbounded socket
growth and then investigate possible causation.



Adrian

>
> This was shortly after reboot:
>
> mars# netstat -A | grep stream | wc -l ; sockstat -u | wc -l
>     2705
>     2981
>
> - From your explanation above, I'm guessing that the higher sockstat #s is where
> you were talking about one socket being used by multiple processes?  But, right
> now:
>
> mars# netstat -nA | grep stream | wc -l ; sockstat -u | wc -l
>     5025
>     2905
>
> sockstat -u #s are *down*, but netstat -na is almost double ...
>
> Again, based on what you state above: "Sockets can also exist without any
> referencing process (if the application closes, but there is still data
> draining on an open socket)."
>
> Now, looking at another 6-STABLE server, but one that has been running for 2
> months now, I'm seeing numbers more consistent with what mars looks like
> shortly after all the jails start up:
>
> venus# netstat -nA | grep stream | wc -l ; sockstat -u | wc -l
>     2126
>     2209
>
> So, if those sockets on mars are 'still draining on an open socket', is there
> some way of finding out where?  If I'm understanding what you've said above,
> these 'draining sockets' don't have any processes associated with them anymore?
> So, its not like I can just kill off a process, correct?
>
>
> - ----
> Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
> Email . scrappy@hub.org                              MSN . scrappy@hub.org
> Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (FreeBSD)
>
> iD8DBQFGOlh34QvfyHIvDvMRApSUAJ9jPszXBw83hXPRLbczimNWFtn6WwCgpijT
> nDWi/kW4Gt8/J2a4U3n2prk=
> =IQCW
> -----END PGP SIGNATURE-----
>
>


-- 
Adrian Chadd - adrian@freebsd.org



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