Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Oct 1998 20:42:06 -0500 (EST)
From:      Barrett Richardson <rabtter@aye.net>
To:        Steven Yang <syang@directhit.com>
Cc:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: FW: Can't get rid of my mbufs.
Message-ID:  <Pine.BSF.3.96.981027203242.10772A-100000@phoenix.aye.net>
In-Reply-To: <839A86AB6CE4D111A52200104B938D4308081A@MOE>

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

If you really think your server in production is going to be
that heavily loaded search the archives for "large scale server"
info (look for blurbs about wcarchive and postings by David Greenman).


On Tue, 27 Oct 1998, Steven Yang wrote:

> Hi, I posted this to freebsd-questions, but nobody responded.  Can
> anybody on this list help me?
> 
> Thanks,
> Steven
> 
> > -----Original Message-----
> > From:	Steven Yang 
> > Sent:	Tuesday, October 20, 1998 11:04 AM
> > To:	'freebsd-questions@freebsd.org'
> > Subject:	Can't get rid of my mbufs.
> > 
> > Hi, we are running a test on FreeBSD 2.2.6, using Apache 1.2.4 with
> > FastCGI.  We are performing about 100 requests per second over a
> > high-speed switch.  On average, each request returns about 20,000
> > bytes, so we are transferring about 2MB/sec.  The problem is, our
> > machine ends up rebooting itself after a couple hours.  
> > Here are some sample outputs after pounding on our machine for over 1
> > hour:
> > # netstat -m
> > 4449 mbufs in use:
> >         4437 mbufs allocated to data
> >         1 mbufs allocated to packet headers
> >         7 mbufs allocated to protocol control blocks
> >         4 mbufs allocated to socket names and addresses
> > 4263/4314 mbuf clusters in use
> > 9184 Kbytes allocated to network (98% in use)
> > 0 requests for memory denied
> > 0 requests for memory delayed
> > 0 calls to protocol drain routines
> > 
> > #netstat -r
> > Routing tables
> > 
> > Internet:
> > Destination        Gateway             Flags       Refs     Use
> > Netif   Expire
> > default              10.4.18.1             UGSc        1        0
> > fxp0
> > 10.4.18/24         link#1                  UC            0        0 
> > 10.4.18.1           0:10:7b:a6:a6:e8   UHLW      2        0
> > fxp0    684
> > moe                  0:10:4b:93:8d:43   UHLW      0       43
> > fxp0   1186
> > 10.4.18.198       0:10:4b:99:c5:e2   UHLW      1      9215795
> > fxp0    972
> > localhost           localhost               UH          0        0
> > lo0
> > 
> > Symptoms: I can sit around for a long time with no network activity,
> > and the mbufs won't decrease.  If I exceed 10,000 mbuf clusters, I'm
> > in danger of hitting a server reboot.  I can kill Apache, but  that
> > doesn't help.  My memory usage increases linearly with increasing
mbuf
> > clusters.  mbuf clusters only seem to increase under heavy load.
> > Basically, once an mbuf is allocated, it's never deallocated, and we
> > don't have memory leaks. 
> > How do I solve this problem?
> > 
> > Thanks,
> > Steven
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981027203242.10772A-100000>