I have a linux machine with ubuntu OS installed on it. Now I want to upgrade the hardware. Namely, I'd like to install more RAM. My question is, how do I determine which kind of RAM installed now, what kinds of ram compatible with my current hardware and what is a maximal capacity of memory may I install?

It is preferable to use command line, to answer these questions. Thank you.


dmidecode will tell you how the RAM etc. reports itself, by decoding information in a table. There's an Ubuntu package of it already too. The relevant parts of an example output might be:

Handle 0x0005, DMI type 5, 22 bytes
Memory Controller Information
    Error Detecting Method: 64-bit ECC
    Error Correcting Capabilities:
    Supported Interleave: One-way Interleave
    Current Interleave: One-way Interleave
    Maximum Memory Module Size: 1024 MB
    Maximum Total Memory Size: 3072 MB
    Supported Speeds:
    Supported Memory Types:
    Memory Module Voltage: 3.3 V
    Associated Memory Slots: 3
    Enabled Error Correcting Capabilities:

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM 1
    Bank Connections: 0 1
    Current Speed: Unknown
    Type: Other DIMM SDRAM
    Installed Size: 256 MB (Double-bank Connection)
    Enabled Size: 256 MB (Double-bank Connection)
    Error Status: OK

Be careful though, some BIOS implementations are faulty and/or outright lie in this data.

  • This is great for the existing hardware side. I use crucial.com for the compatibility side. They have a great tool that has every machine I've ever upgraded and shows which types of RAM you can use and how much of each. – polynomial Sep 3 '11 at 16:14

A tool named


can tell exactly what you need.

It actually uses dmidecode for the memory, but provides more information about the hardware in overall.


There are enough quirks (for example, in 18-bank HP xeon motherboards, you can only use 12 for unbuffered memory) that your best bet is really to find out the board and ask the manufacturer. For example, HP has a memory configuration website. Dmidecode and other software solutions don't tell the full story. Not even the BIOS can tell yo all of the pitfalls.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.