Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2002 10:10:57 -0800
From:      Jeff Behl <jeff@expertcity.com>
To:        freebsd-net <freebsd-net@freebsd.org>
Subject:   when are mbuf clusters released?
Message-ID:  <3E108C31.9060403@expertcity.com>

next in thread | raw e-mail | index | archive | help
running apache-2.0.42 we're running into mbuf cluster exhaustion.  going
by what 'man tuning' says:

We recommend values between 1024 and 4096 for machines with mod-
erates amount of memory, and between 4096 and 32768 for machines with
greater amounts of memory.  Under no circumstances should you specify an
arbitrarily high value for this parameter, it could lead to a boot-time
crash.

you'd think we would have been fine at 32768.  setting it to 64000
helped, but only for a while; usage was still slowly creeping up

5066/52544/256000 mbufs in use (current/peak/max):
          5058 mbufs allocated to data
          8 mbufs allocated to packet headers
5031/50612/64000 mbuf clusters in use (current/peak/max)
114360 Kbytes allocated to network (15% of mb_map in use)


is there some strange interaction going on between apace2 and bsd?
killing apache caused the mbuf clusters to start draining, but only
slowly.  will clusters still be allocated in FIN_WAIT_? states?  TIME_WAIT?

This maching was serving a couple hundred connections a second...which
doesn't seem like it should have taxed it much (p3 1.2 gHz).  CPU util
was low.

Any help appreciated.

Jeff



FreeBSD dell350-12.snv 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Tue Oct
15 16:20:35 GMT 2002
root@codebase.corp:/usr/src/sys/compile/EC-DELL-03  i386


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




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