Home

Inspecting RAM details on Linux

When you need to know what RAM is in a server — capacity per stick, which slot it's in, the DDR generation, the speed — you don't have to crack open the case. A couple of standard tools will tell you.

dmidecode

bash
dmidecode -t memory

Walks all the DIMM slots on the board and shows what's installed in each. Sample output:

You get the size, the slot it's in, the DDR generation, the speed — pretty much every question you'd ask about a stick.

lshw

bash
lshw -C memory -short

Same info but in a much terser table — handier when you just want a quick summary.

Both work. Pick whichever fits the moment.