Linux indirect RAM calculation – (dmidecode)

Hey, here is nice tips for indirect RAM calculation:

cat /proc/meminfo | grep MemTotal

dmidecode -t 17 | awk ‘( /Size/ && $2 ~ /^[0-9]+$/ ) { x+=$2 } END{ print “t” “Installed RAM: ” x “MB”}’

Useful in case of Xen kernel with incorrect ‘free’ result with huge amount of RAM.

Author: GergunD

Leave a Reply