~$ sudo apt-get

Display Physical Memory in Server

by on Nov.13, 2009, under Linux, Server

The following is useful in the event that the wrong version (32 vs 64bit) of linux or non-SMP/PAE kernel is installed and you’d like to verify how much RAM physically is in the server.

dmidecode | awk '/\tSize: [0-9]+ MB/ {SUM=SUM+$2} END {print SUM}'

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...