Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2001 00:11:45 -0600 (CST)
From:      David Scheidt <dscheidt@tumbolia.com>
To:        sean-freebsd-hackers@chittenden.org
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Easy way to compute memory stats? (procfs?)
Message-ID:  <Pine.BSF.4.21.0103192354310.37794-100000@shell-2.enteract.com>
In-Reply-To: <20010319183135.B84536@rand.tgd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Mar 2001 sean-freebsd-hackers@chittenden.org 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.  

-- 
dscheidt@tumbolia.com
Bipedalism is only a fad.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103192354310.37794-100000>