> : 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.
Drat. I was hoping to arrive at a number similar to top's
Free column. Right now the vm stat from sysctl is about 25% of what
top's reporting (256MB physical). At the same time... the free pages
may be a good value for me to toss around given that I'm also
including the load and some statistics of the host's past.
> :free swap
>
> pstat(8) will tell you this
Duh, thanks.
> :total avail mem
>
> Do you mean physical memory, in which case the value of hw.physmem will
> tellyou.
Phys mem + swap, which I think I can calc pretty easily now
that I have swap. -sc
--
Sean Chittenden [EMAIL PROTECTED]
PGP signature