From owner-freebsd-questions Fri Apr 4 09:30:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA21005 for questions-outgoing; Fri, 4 Apr 1997 09:30:30 -0800 (PST) Received: from murkwood.gaffaneys.com (dialup3.gaffaneys.com [134.129.252.22]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA20996 for ; Fri, 4 Apr 1997 09:30:24 -0800 (PST) Received: (from zach@localhost) by murkwood.gaffaneys.com (8.8.5/8.8.5) id LAA03235; Fri, 4 Apr 1997 11:31:27 -0600 (CST) From: Zach Heilig Message-ID: <19970404113126.06442@murkwood.gaffaneys.com> Date: Fri, 4 Apr 1997 11:31:26 -0600 To: "John S. Dyson" Cc: questions@freebsd.org Subject: Re: RAM usage References: <199704041434.JAA25607@dyson.iquest.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.68 In-Reply-To: <199704041434.JAA25607@dyson.iquest.net>; from "John S. Dyson" on Fri, Apr 04, 1997 at 09:34:47AM -0500 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, Apr 04, 1997 at 09:34:47AM -0500, John S. Dyson wrote: > Yes, note that the "cache" memory is almost the same as "free" memory > in other OSes. FreeBSD aggressively caches file contents (both > executables and data files.) Don't you also have to add in "Inactive" memory as well when figuring free memory? For example, if the line from top(1) looked like this: Mem: 35M Active, 2464K Inact, 13M Wired, 9900K Cache, 7276K Buf, 1024K Free I really would have 2464K+9900K+7276K+1024K == 20664K free, right? But, these numbers don't add up: 20664K+35840K+13312K==69816K when I should really have 65536K total, giving 4280K extra... I think I saw this discussion before (didn't pay close attention though). Perhaps there is overlap between Cache and Buf..?? I tried again and got: Mem: 36M Active, 2636K Inact, 14M Wired, 9628K Cache, 7458K Buf, 556K Free == 71478K... -- Zach Heilig (zach@blizzard.gaffaneys.com) | ALL unsolicited commercial email /var/spool/news is 110% full, | is unwelcome. I avoid dealing please delete all the spam you can. | with companies that email ads.