Physical Memory Info under Linux

I've a number of machines that needs memory upgrades, I didn't want to turn them off to see what is inside in order to plan this. Under windows it's pretty easy, just download and run CPU-Z and you'll know all there is to know.

I did a lot of searching etc and eventually came across dmidecode, you just run it as root and it parses through /dev/mem and loads the DMI tables, parses them and prints them in human readable form.

It shows a lot of useful information, on my IBM HS20 Blade it shows model, serial, hardware numbers etc. Here is a sample of the memory section:

Handle 0x0017
        DMI type 16, 15 bytes.
        Physical Memory Array
                Location: Proprietary Add-on Card
                Use: System Memory
                Error Correction Type: Multi-bit ECC
                Maximum Capacity: 16 GB
                Error Information Handle: Not Provided
                Number Of Devices: 4
Handle 0x0018
        DMI type 17, 21 bytes.
        Memory Device
                Array Handle: 0x0017
                Error Information Handle: Not Provided
                Total Width: 72 bits
                Data Width: 64 bits
                Size: 512 MB
                Form Factor: DIMM
                Set: 1
                Locator: DIMM1
                Bank Locator: Slot 1
                Type: DDR
                Type Detail: Synchronous
Handle 0x0019
        DMI type 17, 21 bytes.
        Memory Device
                Array Handle: 0x0017
                Error Information Handle: Not Provided
                Total Width: 72 bits
                Data Width: 64 bits
                Size: 512 MB
                Form Factor: DIMM
                Set: 1
                Locator: DIMM2
                Bank Locator: Slot 2
                Type: DDR
                Type Detail: Synchronous
Handle 0x001A
        DMI type 17, 21 bytes.
        Memory Device
                Array Handle: 0x0017
                Error Information Handle: Not Provided
                Total Width: 72 bits
                Data Width: 64 bits
                Size: 512 MB
                Form Factor: DIMM
                Set: 2
                Locator: DIMM3
                Bank Locator: Slot 3
                Type: DDR
                Type Detail: Synchronous
Handle 0x001B
        DMI type 17, 21 bytes.
        Memory Device
                Array Handle: 0x0017
                Error Information Handle: Not Provided
                Total Width: 72 bits
                Data Width: 64 bits
                Size: 512 MB
                Form Factor: DIMM
                Set: 2
                Locator: DIMM4
                Bank Locator: Slot 4
                Type: DDR
                Type Detail: Synchronous

So I have 4 total memory slots, each slot has a 512MB DDR module in it, this means I'll be throwing it all away and buying new RAM.

1 Comment

I'm very glad this post turned up in Google. Learning about "dmidecode" saved me a ton of work! Thanks for your post.

Leave a comment

Recent Entries

  • Devolo dLAN Homeplug Networking

    I live in a pretty typical for London double story house, my study is upstairs with TV etc downstairs.   Till now I just use...

  • Layeredtech's thanks to old customers

    I have been a customer of Layeredtech for years, at present I have only 2 machines there but at times I've had 7 or 8. ...

  • flashpolicyd 2.0

    I wrote a multi threaded server for Adobe Flash Policy requests, some background from Adobe:Since policy files were first introduced, Flash Player has recognized /crossdomain.xml...

  • Adventures with Ruby

    Some more about my continuing experiences with ruby, in my last post I saidthe language does what you'd expect and as you'll see in my...

  • New programming language of choice - Ruby

    I have fallen out of love with Perl some time ago, I cannot point to one specific thing about it that put me off, I...

Close