Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 1998 15:05:35 +0400 (MSD)
From:      bag@sinbin.demos.su (Alex G. Bulushev)
To:        mishania@demos.su (Mikhail A. Sokolov)
Cc:        wollman@khavrinen.lcs.mit.edu, dg@root.com, freebsd-current@FreeBSD.ORG
Subject:   Re: mbuf cluster problem continues!!
Message-ID:  <199806071105.PAA17878@sinbin.demos.su>
In-Reply-To: <19980602192424.02082@demos.su> from "Mikhail A. Sokolov" at "Jun 2, 98 07:24:24 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello,
> 
> On Mon, Jun 01, 1998 at 12:26:41PM -0400, Garrett Wollman wrote:
> # <<On Sun, 31 May 1998 22:20:10 -0700, David Greenman <dg@root.com> said:
>  
> # >    I've seen several reports of mbuf leaks in the specific case of running
> # > squid proxy servers.
>  
> # Not seen here.
> 
> # root@xyz(4)$ netstat -m
> # 825/1408 mbufs in use:
> 
> Oh well, it's not squid what is definite culprit here, not closing tcp 
> connections: let's take a machine, which is attacked by clients, is being 
> agressively used nfs server and doesn't even have any services besides nfs,
> which could leave tcp connections not closed:
> 
> {zz}~/# netstat -m
> 10577/10688 mbufs in use:
>  10057 mbufs allocated to data
>  520 mbufs allocated to packet headers
> 451/728 mbuf clusters in use
> 2792 Kbytes allocated to network (79% in use)
> 0 requests for memory denied
> 0 requests for memory delayed
> 0 calls to protocol drain routines
> {zz}~/# uptime
>  6:44ÐÐ  up 1 day,  8:57, 21 users, load averages: 1.85, 1.80, 1.62
> 
> NMBCLUSTERS are 24k, and still the machine will leak mbuf's once a week.
> 

it is intresting than in the case of nfs server (with mbuf's leak's)
it is no problems with number of mbuf claster's, only number of mbuf's
increased, for example:

 4:29  up  6:42, 19 users, load averages: 1.06, 1.23, 1.48
	   ^^^^ after reboot

> netstat -m

3609/3744 mbufs in use:
^^^^^^^^^
	3084 mbufs allocated to data
	525 mbufs allocated to packet headers
485/660 mbuf clusters in use
^^^^^^^
1788 Kbytes allocated to network (79% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

so 485 mbuf clusters and 3600 mbuf's allocated
and after several day's:

1:56  up 6 days,  4:09, 14 users, load averages: 0.58, 0.77, 0.84
	 ^^^^^^^^^^^^^

> netstat -m

34613/34752 mbufs in use:
^^^^^^^^^^^
	34393 mbufs allocated to data
	220 mbufs allocated to packet headers
260/818 mbuf clusters in use
^^^^^^^
5980 Kbytes allocated to network (81% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

only 260 mbuf clusters allocated, but 34613 mbufs !!!
so this nfs server state is "before crash"

   Alex.

> 
> My 2 kopeks.
> 
> -- 
> -mishania
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 


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



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