Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 1997 11:31:26 -0600
From:      Zach Heilig <zach@blizzard.gaffaneys.com>
To:        "John S. Dyson" <toor@dyson.iquest.net>
Cc:        questions@freebsd.org
Subject:   Re: RAM usage
Message-ID:  <19970404113126.06442@murkwood.gaffaneys.com>
In-Reply-To: <199704041434.JAA25607@dyson.iquest.net>; from "John S. Dyson" <toor@dyson.iquest.net> on Fri, Apr 04, 1997 at 09:34:47AM -0500
References:  <Pine.OSF.3.96.970404100618.3330A-100000@tom.fe.up.pt> <199704041434.JAA25607@dyson.iquest.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970404113126.06442>