Measuring Free memory

Lowell Gilbert freebsd-questions-local at
Wed Mar 17 19:03:06 UTC 2010

Mario Lobo <lobo at> writes:

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

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:
by any chance?

Lowell Gilbert, embedded/networking software engineer, Boston area

More information about the freebsd-questions mailing list