Date: Tue, 20 Oct 1998 11:03:59 -0400 From: Steven Yang <syang@directhit.com> To: "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: Can't get rid of my mbufs. Message-ID: <839A86AB6CE4D111A52200104B938D430807E3@MOE>
next in thread | raw e-mail | index | archive | help
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. How do I solve this problem? Thanks, Steven To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?839A86AB6CE4D111A52200104B938D430807E3>