Real and Free Memory

Özkan KIRIK ozkan at mersin.edu.tr
Wed Jul 20 09:01:41 GMT 2005


Thanks for your fast reply.

What about free memory?
does  vm.vmtotal   give right value?


Marc Olzheim wrote:

>On Wed, Jul 20, 2005 at 11:42:57AM +0300, zkan KIRIK wrote:
>  
>
>>Hi,
>>
>>i am trying to measure free memory and real memory.
>>
>>but values at dmesg.boot and sysctl  are diffrent.
>>
>># cat /var/run/dmesg.boot | grep real
>>real memory  = 268435456 (256 MB)
>>
>># sysctl vm.vmtotal  | grep Real
>>Real Memory:            (Total: 232792K Active 122448K)
>>
>>As above, values are not equal,
>>so that, i cant trust the Free Memory value that sysctl gives.
>>
>>how can i get right values?
>>    
>>
>
>sysctl hw.physmem
>
>Zlo
>  
>


More information about the freebsd-hackers mailing list