Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2010 15:03:03 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Mario Lobo <lobo@bsd.com.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Measuring Free memory
Message-ID:  <44d3z2epp4.fsf@be-well.ilk.org>
In-Reply-To: <201003171546.00190.lobo@bsd.com.br> (Mario Lobo's message of "Wed, 17 Mar 2010 15:46:00 %2B0000")
References:  <201003171546.00190.lobo@bsd.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
Mario Lobo <lobo@bsd.com.br> writes:

> I am trying to get the most precise reading I can of all free memory (8-
> STABLE).

First, you'll need a precise definition of what you mean by "free memory".

> I am using 
> /usr/bin/vmstat | grep -a 2 | awk '{print $5}'
>
> But I'm not sure if this reflects ALL free memory.
>
> Would anyone have a more precise place to read free memory from?

Add the "-H" flag to get that value more precise.  I suspect, however,
that precision isn't really the right term for what you're after.  

Have you seen:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM
and
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#FREE-MEMORY-AMOUNT
by any chance?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/



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