From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 10:06:49 2003 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 864F116A4BF for ; Tue, 9 Sep 2003 10:06:49 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id B181943FA3 for ; Tue, 9 Sep 2003 10:06:44 -0700 (PDT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19wlxH-0003WU-00 for ; Tue, 09 Sep 2003 19:07:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wlxG-0003WM-00 for ; Tue, 09 Sep 2003 19:07:02 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19wlwv-0001Me-00 for ; Tue, 09 Sep 2003 19:06:41 +0200 From: Jesse Guardiani Date: Tue, 09 Sep 2003 13:06:41 -0400 Organization: WingNET Lines: 36 Message-ID: References: <33CC6198-E2E7-11D7-A4CA-003065ABFD92@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org User-Agent: KNode/0.7.2 X-Mail-Copies-To: never Sender: news Subject: Re: howto calculate free memory from top X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jesse@wingnet.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 17:06:49 -0000 X-List-Received-Date: Tue, 09 Sep 2003 17:06:49 -0000 Charles Swiger wrote: > > On Tuesday, September 9, 2003, at 08:35 AM, Jesse Guardiani wrote: >> How do I calculate the amount of free memory my system >> has at any given point in time? > > What do you mean by "free memory"? Memory that can be used by other programs before the vm starts using swap. > >> My top usually looks like this: >> >> Mem: 72M Active, 668M Inact, 165M Wired, 29M Cache, 112M Buf, 70M Free >> Swap: 2048M Total, 5448K Used, 2043M Free >> >> I understand the "70M Free" part, but should I add "668M Inact" to >> that? Or is it more complicated? > > It's more complicated. The "inactive" memory refers to pages that have > been used (but not recently), and thus are candidates for being > replaced by more active pages, if the system has enough activity to > want such pages for other tasks. So they _are_ available for use then? And thus are relatively free, correct? -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net