From owner-freebsd-questions Tue Oct 20 08:04:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA23610 for freebsd-questions-outgoing; Tue, 20 Oct 1998 08:04:58 -0700 (PDT) (envelope-from owner-freebsd-questions@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 IAA23597 for ; Tue, 20 Oct 1998 08:04:49 -0700 (PDT) (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 LAA02438 for ; Tue, 20 Oct 1998 11:04:22 -0400 (EDT) Received: by MOE with Internet Mail Service (5.0.1459.74) id ; Tue, 20 Oct 1998 11:04:02 -0400 Message-ID: <839A86AB6CE4D111A52200104B938D430807E3@MOE> From: Steven Yang To: "'freebsd-questions@freebsd.org'" Subject: Can't get rid of my mbufs. Date: Tue, 20 Oct 1998 11:03:59 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1459.74) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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