On Mon, 19 Mar 2001 [EMAIL PROTECTED] wrote:

:       Is there an easy way (from script ideally) to get the following
:stats:
:
:free physical mem (avail ram)

This is going to be quite small on any busy machine, or machine that has a
reasonable uptime.  The VM system will cache things unless there's a demand
for memory.  vm.stats.vm.v_free_count has the value in it, but quite often will
be quite a bit lower than the amount of memory that would be available if
the system were under memory pressure.  If you look at top's output, there
is a value labled cache.  The pages in this queue are clean, and can be
discarded without needing to write them to backing store.  The number the
system tells you isn't very useful without knowing what the system is doing.


:free swap

pstat(8) will tell you this

:total avail mem

Do you mean physical memory, in which case the value of hw.physmem will
tellyou.  

-- 
[EMAIL PROTECTED]
Bipedalism is only a fad.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to