From owner-freebsd-questions@FreeBSD.ORG Wed Dec 22 23:31:23 2004 Return-Path: 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 34F0A16A4CE for ; Wed, 22 Dec 2004 23:31:23 +0000 (GMT) Received: from extacy.homeip.net (extacy.homeip.net [67.62.48.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71D1243D4C for ; Wed, 22 Dec 2004 23:31:22 +0000 (GMT) (envelope-from Niy@extacy.homeip.net) Received: (qmail 26437 invoked by uid 89); 22 Dec 2004 23:35:51 -0000 Received: from unknown (HELO ?192.168.0.10?) (Niy@extacy.homeip.net@192.168.0.10) by extacy.homeip.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 Dec 2004 23:35:51 -0000 Message-ID: <41CA0452.1080300@extacy.homeip.net> Date: Wed, 22 Dec 2004 18:33:38 -0500 From: Tim User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041109 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Top loses memory over time? Memory leak? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 23:31:23 -0000 Okay, here's the background. I thought top was displaying my memory stats oddly, so I ran a little test. I rebooted the pc, logged into the console as a normal user, and ran top. I did this at around midnight last night / this morning. I let it run until I got home from work, (6:15 today) So that's about... 18 hours. Here are my results. First, when I started last night. 29 processes: 1 running, 28 sleeping CPU states: 0.0% user, 0.0% nice, 0.2% system, 6.0% interrupt, 93.8% idle Mem: 8120K Active, 8372K Inact, 17M Wired, 8576K Buf, 460M Free Swap: 980M Total, 980M Free Now, the one from when I got home: 25 processes: 1 running, 24 sleeping CPU states: 0.0% user, 0.0% nice, 0.4% system, 8.9% interrupt, 90.7% idle Mem: 7400K Active, 249M Inact, 68M Wired, 60M Buf, 170M Free Swap: 980M Total, 980M Free This machine sat unattended all day. What could be causing the drastic drop in Free memory? Is this normal? When I actually use the machine, it's even worse... Almost all of my RAM goes from Free to other various states, Mostly Inactive, even after I've closed all the programs I've had open, rather quickly (maybe an hour or two) For reference, the uname -a: FreeBSD Empathy 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Nov 7 21:38:11 EST 2004 Niy@Empathy:/usr/obj/usr/src/sys/SMP i386 (Dual processor, PIII 1.0ghz, 512M Ram)