I\'m typing a shell script to find out the total physical memory in some RHEL linux boxes.
First of all I want to stress that I\'m interested in the total ph
Add the last 2 entries of /proc/meminfo, they give you the exact memory present on the host.
/proc/meminfo
Example:
DirectMap4k: 10240 kB DirectMap2M: 4184064 kB
10240 + 4184064 = 4194304 kB = 4096 MB.