Date: Tue, 27 Oct 1998 19:03:12 -0500 From: Steven Yang <syang@directhit.com> To: "'freebsd-hackers@freebsd.org'" <freebsd-hackers@FreeBSD.ORG> Subject: FW: Can't get rid of my mbufs. Message-ID: <839A86AB6CE4D111A52200104B938D4308081A@MOE>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?839A86AB6CE4D111A52200104B938D4308081A>