From owner-freebsd-hackers Tue Oct 27 16:04:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA17280 for freebsd-hackers-outgoing; Tue, 27 Oct 1998 16:04:31 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from elektra.ultra.net (elektra.ultra.net [199.232.56.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA17273 for ; Tue, 27 Oct 1998 16:04:29 -0800 (PST) (envelope-from syang@directhit.com) Received: from moe.directhit.com ([10.4.18.2]) by elektra.ultra.net (8.8.8/ult.n14767) with ESMTP id TAA13737 for ; Tue, 27 Oct 1998 19:03:50 -0500 (EST) Received: by MOE with Internet Mail Service (5.0.1459.74) id ; Tue, 27 Oct 1998 19:03:14 -0500 Message-ID: <839A86AB6CE4D111A52200104B938D4308081A@MOE> From: Steven Yang To: "'freebsd-hackers@freebsd.org'" Subject: FW: Can't get rid of my mbufs. Date: Tue, 27 Oct 1998 19:03:12 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1459.74) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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