"free"

"free"

Post by Donn Mille » Sat, 09 Nov 2002 08:29:43




> In linux you get a nice view on memory feeding "free" to the PC.
> What is the equivalent for this in freeBSD?

Good question.  "swapinfo" will give free swap space, and "vmstat" looks
to give some stats about memory usage, among other things.  One thing
you might try is to try running "free" under Linux emulation, with
linprocfs mounted.

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

"free"

Post by Lowell Gilber » Sat, 09 Nov 2002 11:38:57



> In linux you get a nice view on memory feeding "free" to the PC.
> What is the equivalent for this in freeBSD?

top(1) displays this information.  The virtual memory models aren't
quite equivalent between Linux and FreeBSD, but the equivalent of what
Linux calls "free" memory is (roughly) the sum of the inactive, wired,
cache, and free states.

 
 
 

"free"

Post by Steve O'Hara-Smit » Sat, 09 Nov 2002 15:47:38


On Fri, 08 Nov 2002 02:38:57 GMT

LG> Linux calls "free" memory is (roughly) the sum of the inactive, wired,
LG> cache, and free states.

        Hmm, wired doesn't belong in this list, those are pages that may
not be swapped in case of need by DMA or and interrupt. The rest seems
reasonable.

--
C:>WIN                                      |     Directable Mirrors
The computer obeys and wins.                |A Better Way To Focus The Sun
You lose and Bill collects.                 |  licenses available - see:
                                            |   http://www.sohara.org/

 
 
 

"free"

Post by John S. Dyso » Sun, 10 Nov 2002 03:08:00



> On Fri, 08 Nov 2002 02:38:57 GMT

> LG> Linux calls "free" memory is (roughly) the sum of the inactive, wired,
> LG> cache, and free states.

> Hmm, wired doesn't belong in this list, those are pages that may
> not be swapped in case of need by DMA or and interrupt. The rest seems
> reasonable.

That is true for one kind of 'free.'   Inactive pages need the pagedaemon to wakeup
so as to get access to them (well, perhaps the associated process exiting can 'free'
certain pages also.)    Cache and free pages are really, really free, available for
immediate use by processes.

John