From owner-freebsd-stable Tue Apr 29 22:46:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA06584 for stable-outgoing; Tue, 29 Apr 1997 22:46:07 -0700 (PDT) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA06575 for ; Tue, 29 Apr 1997 22:45:37 -0700 (PDT) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.8.5/8.8.5) id HAA19298; Wed, 30 Apr 1997 07:44:26 +0200 (SAT) From: John Hay Message-Id: <199704300544.HAA19298@zibbi.mikom.csir.co.za> Subject: Re: Memory usage on NFS server In-Reply-To: from Tom Samplonius at "Apr 29, 97 11:52:18 am" To: tom@uniserve.com (Tom Samplonius) Date: Wed, 30 Apr 1997 07:44:26 +0200 (SAT) Cc: freebsd-stable@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-stable@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > > > For the record, I've seen the same behavior on a machine whose > > primary job is webservices. This is both for 2.1.7 and 2.2.1. > > The swap will be freed by killing and restarting the webservers. > > > > The machine in question has 64MB RAM and 150MB swap. > > > > The webserver is Apache. > > Both inn and apache used mmap'ed memory. When a process mmaps a shared > file, to what process is the memory usage associated with? > > It could be what you are seeing here is a mmap() leak in these > applications, and that mmap'ed memory is not associated with any process. > > Which version of apache? Which version of inn? > I'm using inn 1.5.1 without mmap(), though I have tried the mmap() patch for nnrpd the last few days, but it didn't make a difference to the "swap leakage". I think it must be some setting in inn because between December and February it was very stable (running on 2.2-ALPHA also using inn 1.5.1). have already tried the old kernel but that didn't help, so I will try to backtrack my "tweaks" to the inn config file. I'm also using a patch to fix the pipe bug in inn which shows mostly as dropped articles to overchan. I'll back that out also. > > > > > Do the numbers that top and ps show for per process memory usage also lie? > > > What I see here on my news server, is that I run out of swap (256M), but > > > according to top and ps a rough calculation of the total of all the > > > processes is less than half that. Inn then typically show a usage of > > > ~70M according to top, but as soon as I kill and restart it the swap usage > > > go down to ~5M. I once even added a 128M vn swapfile and it filled that > > > also without inn showing a usage of more than 70M, but killing and > > > restarting it takes the swap usage down to ~5M. > > > John -- John Hay -- John.Hay@mikom.csir.co.za