What is equivalent of Linux's 'free' command on FreeBSD v8.1?
I am calling 'free' from my application and reporting the results in my application's log file. What would be the replacement when porting to FreeBSD v8.1?
Here is a sample run of 'free' on Linux:
[centos4x32 ~] free
total used free shared buffers cached
Mem: 774452 733044 41408 0 98040 328880
-/+ buffers/cache: 306124 468328
Swap: 2031608 224 2031384
vmstathas default output which is similar in nature and takes many options that give extremely detailed information, egvmstat -mswapinfowould cover the swap parttop -d1causes top to print one screen and exit, and the banner is very similar tofree. Usetop -d1 | head -n 7to see only the banner