From owner-freebsd-questions@FreeBSD.ORG Mon Feb 13 01:01:46 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 CB55016A420 for ; Mon, 13 Feb 2006 01:01:46 +0000 (GMT) (envelope-from freebsd@rtl.fmailbox.com) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57D6A43D48 for ; Mon, 13 Feb 2006 01:01:46 +0000 (GMT) (envelope-from freebsd@rtl.fmailbox.com) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 9C503D33D40 for ; Sun, 12 Feb 2006 20:01:44 -0500 (EST) Received: from web3.messagingengine.com ([10.202.2.212]) by frontend1.internal (MEProxy); Sun, 12 Feb 2006 20:01:44 -0500 Received: by web3.messagingengine.com (Postfix, from userid 99) id C752517C3C; Sun, 12 Feb 2006 20:01:45 -0500 (EST) Message-Id: <1139792505.30118.254198744@webmail.messagingengine.com> X-Sasl-Enc: k6cusx10VURyXTv8IgLojU0XhABg/lk72qdHSUbTq7Dw 1139792505 From: "Robert Leftwich" To: freebsd-questions@freebsd.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 5022 (F2.73; T1.15; A1.64; B3.05; Q3.03) Date: Mon, 13 Feb 2006 12:01:45 +1100 Subject: 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 01:01:46 -0000 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? Thanks Robert