cancel
Showing results for 
Search instead for 
Did you mean: 

Linux memory usage.

 
Gulam Mohiuddin
Regular Advisor

Linux memory usage.

I would like to figure out EXACTLY how much physical memory is FREE and USED on RedHat RHEL As 4.0 32-Bits Server.


[~]$free -m
total used free shared buffers cached
Mem: 10145 7073 3072 0 146 4941
-/+ buffers/cache: 1985 8160
Swap: 10239 0 10239

[~]$cat /proc/meminfo
MemTotal: 10389300 kB
MemFree: 3147628 kB
Buffers: 150380 kB
Cached: 5059760 kB
SwapCached: 0 kB
Active: 3600300 kB
Inactive: 3456084 kB
HighTotal: 9568044 kB
HighFree: 2997376 kB
LowTotal: 821256 kB
LowFree: 150252 kB
SwapTotal: 10485752 kB
SwapFree: 10485492 kB
Dirty: 300 kB
Writeback: 0 kB
Mapped: 2897692 kB
Slab: 75628 kB
CommitLimit: 15680400 kB
Committed_AS: 4591552 kB
PageTables: 83708 kB
VmallocTotal: 106488 kB
VmallocUsed: 9820 kB
VmallocChunk: 96276 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB

Thanks,

Gulam.
Everyday Learning.
1 REPLY
Steven E. Protter
Exalted Contributor

Re: Linux memory usage.

Shalom,

free

without the -m provides an answer that does not require a hand calculator.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com