From owner-freebsd-questions@FreeBSD.ORG Mon Feb 13 08:27:59 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49CFD16A420 for ; Mon, 13 Feb 2006 08:27:59 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id C86AD43D46 for ; Mon, 13 Feb 2006 08:27:58 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.24.8.84] (generic.ATOSORIGIN.ES [212.170.156.200]) by strange.daemonsecurity.com (Postfix) with ESMTP id 5CD182E041; Mon, 13 Feb 2006 09:28:00 +0100 (CET) Message-ID: <43F0434F.2000703@locolomo.org> Date: Mon, 13 Feb 2006 09:29:03 +0100 From: Erik Norgaard User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Robert Leftwich References: <1139792505.30118.254198744@webmail.messagingengine.com> In-Reply-To: <1139792505.30118.254198744@webmail.messagingengine.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Memory leak? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2006 08:27:59 -0000 Robert Leftwich wrote: > After running some number crunching for the last twelve hours I noticed > my box starting to use swap. Given that it has 4gb in it (of which 3gb > is available, see my other email for that issue) and I know that the app > never uses more than around 1gb I was surprised. Looking at the numbers > from top I was even more surprised, there seems to be a significant > chunk of memory unaccounted for (from memory when I checked after a > couple of hours the inactive memory was around 1300M with Free in the > 400M range, everything basically totalling to around the 3gb mark as > expected). The app is driven by a script and is only running for around > 1/2 hr per dataset after which it shuts down and restarts on a new > dataset, so all memory should be freed up/made inactive after each > restart, no? > > Mem: 274M Active, 227M Inact, 263M Wired, 95M Cache, 214M Buf, 4536K > Free > Swap: 4068M Total, 707M Used, 3361M Free, 17% Inuse > > real memory = 3221159936 (3071 MB) > avail memory = 3106529280 (2962 MB) > > What's the best way to track down more information as to the cause of > this problem? Do you run other applications also? There was a discussion on CURRENT@ some weeks ago about a memory leak that turned out to be firefox with some extensions, updates are available now. Cheers, Erik