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.
August 22nd, 2010 at 5:48 pm
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) }’