From owner-freebsd-hackers Tue Oct 27 22:31:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA24671 for freebsd-hackers-outgoing; Tue, 27 Oct 1998 22:31:00 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA24666 for ; Tue, 27 Oct 1998 22:30:58 -0800 (PST) (envelope-from marcs@znep.com) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.9.1a/8.9.1) with UUCP id XAA03830; Tue, 27 Oct 1998 23:29:35 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with ESMTP id WAA04556; Tue, 27 Oct 1998 22:30:23 -0800 (PST) Date: Tue, 27 Oct 1998 22:30:23 -0800 (PST) From: Marc Slemko To: Mike Smith cc: Steven Yang , "'freebsd-hackers@freebsd.org'" Subject: Re: FW: Can't get rid of my mbufs. In-Reply-To: <199810280158.RAA02572@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 27 Oct 1998, Mike Smith wrote: > > Thanks for the info. One question remains. Suppose netstat -m tells me > > that 7900/8050 mbuf clusters are in use. Now suppose I stop all of the > > important processes and let the machine stay idle for 2 hours. Why does > > netstat -m still tell me that 7900/8050 mbuf clusters are in use? > > Basically, I'd wish it would say something like 99/8050 mbuf clusters in > > use instead. I already have MAXUSERS set to 512. > > You have an mbuf leak somewhere, where mbufs are being allocated to > contain data but never being freed. > > I'm not aware of any known mbuf leaks in 2.2.7, however you might He isn't using 2.2.7, he is using 2.2.6 plus an old verison of Apache. My first recommendation would be to upgrade both. I don't really see that the sort of volume being moved is that huge (it is trivial to do 100 hits/sec on a 20k file on my little p166 using well under 500 mbuf clusters), but a _lot_ can depend on the exact benchmark setup. eg. 5000 simultaneous clients will use a heck of a lot more mbufs than 5 simultaneous clients will, yet both could get similar throughput. SUre, the FastCGI stuff is probably doing something more complex than static files and it does double the total transfered (from fastcgi to the server, from the server to the client), but still... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message