looking up memory chips

If a machine sports edac then

find /sys/devices/system/edac/ \( -name mem_type -o -name size_mb -o -name mc_name \) -exec cat {} \;

will display quickly what kind of memory modules are visible to the kernel, and in which state they are in.

One Response to “looking up memory chips”

  1. Andreas Wacker Says:

    Related you can ask the kernel about the amount of memory it found during boot via:

    dmesg | grep usable | awk ‘{ n += strtonum(”0x” $4) - strtonum(”0x” $2) } END { print n/(1024*1024) }’

Leave a Reply

You must be logged in to post a comment.