Subject: Re: File/Buffer cache consumes all memory even when constrained in sysctl
To: George Michaelson <ggm@apnic.net>
From: Daniel Carosone <dan@geek.com.au>
List: current-users
Date: 05/17/2004 13:00:18
--WYTEVAkct0FjGQmd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 17, 2004 at 10:53:29AM +1000, George Michaelson wrote:

> My take is that sysctl vm tuning is still a black art.=20

The trick you need to understand is that the min's and max's aren't
really what you might at first assume. All of {file,exec,anon} can be
below min, or above max.

In particular, they can be above max if there's nothing else demanding
that memory at the moment.

If a particular page type is below min, it will never be stolen for
something else that wants memory.  If a page type is above max, it
will be the first page stolen when something of another type wants
memory.

My guess is that your "available space for apps" (ie, totally unused
pages?) is so "low" because your apps aren't actually demanding any
more memory.  This is a Good Thing :)

--
Dan.

--WYTEVAkct0FjGQmd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAqCrCEAVxvV4N66cRAsIJAJ9eN9DIHPfikv/YzCq2vDaxqXkzCQCeKJnp
T5kCme4nu4BaawQ3qgNb8vU=
=PECi
-----END PGP SIGNATURE-----

--WYTEVAkct0FjGQmd--