From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2057 invoked from network); 16 Feb 2000 20:50:03 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Feb 2000 20:50:03 -0000 Received: from skull.piratehaven.org (adsl-63-194-89-126.dsl.snfc21.pacbell.net [63.194.89.126]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id PAA31723 for ; Wed, 16 Feb 2000 15:50:02 -0500 Received: (qmail 18031 invoked by uid 1012); 16 Feb 2000 20:50:01 -0000 Date: Wed, 16 Feb 2000 12:50:01 -0800 From: Brian Pomerantz To: axp-list@redhat.com Subject: Re: Memory leaks Message-ID: <20000216125001.B16844@skull.piratehaven.org> Mail-Followup-To: axp-list@redhat.com References: <200002161948.MAA25701@sicilia.bradfordfamily.org> <38AB04D8.B3E26352@larc.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i In-Reply-To: <38AB04D8.B3E26352@larc.nasa.gov>; from j.a.white@larc.nasa.gov on Wed, Feb 16, 2000 at 03:13:12PM -0500 X-homepage: http://www.piratehaven.org/~bapper/ On Wed, Feb 16, 2000 at 03:13:12PM -0500, Jeffery A. White wrote: > > Here are the results from free > > Rebooted the node and typing free gives : > > total used free shared buffers cached > Mem: 1035416 32504 1002912 15112 3296 16104 > -/+ buffers/cache: 13104 1022312 > Swap: 2094560 0 2094560 > > After job completion free gives: > > total used free shared buffers cached > Mem: 1035416 595392 440024 15112 244536 298736 > -/+ buffers/cache: 52120 983296 > Swap: 2094560 0 2094560 > If you look at the second line from free on both runs, the first number is the amount of memory actually being used by kernel/programs (minus buffer and cache) and the second number is the amount of "free" memory that can be reclaimed if need be. If you run your program a few more times and look at this second line, it should be about the same on the last two runs. There will probably be some swap used after a while but it should stabilize and not try to claim more. If you run your program several times and swap continues to grow, then you have a problem. There is a way to poke the proc file system to tell the kernel max buffer and cache usage which could minimize swap usage a little more, but I don't recall how to do this off the top of my head. The tradeoff there is you'll still have around the same amount of disk I/O if you are writing a lot to disk and using swap is probably faster than writing dirty pages to disk. I would say from these results you probably don't have a memory leak, but you should run your program a few more times to watch the behavior of your swap usage. BAPper