LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   tool to detect number of memory slots, memory module type, speed, and size (http://www.linuxquestions.org/questions/showthread.php?t=312006)

stefanwolf 04-11-2005 09:43 AM

tool to detect number of memory slots, memory module type, speed, and size
 
Hi there,

I have to upgrade memory in a couple of remote (other part of the city) machines and I would like to be able to query all necessary info in a comfortable ssh session without having to drive there and unsrew each different machine (many different types). I googled a lot but I can only find Windows tools, nothing for Linux.

I need:

- total number of memory slots on the mainboard
- for each used slot: current module type, memory type, size and speed

so I can make a shopping list for all the different needed memory modules.



Example from AIDA32 (Windows tool):
-------------------------------------------------------------------
Motherboard info:
[...]
RAM slots: 3 DIMM
[...]

SPD memory info SLOT1:
[...]
module size: 256MB (1 row, 4 banks)
module type: DDR SDRAM
memory speed: PC2700 (166 MHz)
[...]

SPD memory info SLOT2:
[...]
module size: 256MB (1 row, 4 banks)
module type: DDR SDRAM
memory speed: PC2700 (166 MHz)
[...]

SPD memory info SLOT3:
<no info> (= empty)
-------------------------------------------------------------------


Does something similar for Linux exist?? :Pengy:


Best regards, Stefan.

apimente.br 04-11-2005 02:52 PM

Try
Code:

lshw
as root. For more info
Code:

man lshw

camelrider 04-11-2005 04:24 PM

Wow! That's a cool tool.
:D

apimente.br 04-11-2005 08:00 PM

Thanks camelrider!

If you like a nice appearance do:
Code:

lshw -html >MyLinuxBox.html
You'll obtain a html page with your machine hardware report.

stefanwolf 04-13-2005 09:35 AM

Too bad this tool doesN#t work on any of the machines I aim for... Does it give the
information I'm looking for in your machines? It does on the tool's homepage for
one machine but this is what I get:

Machine A:

> lshw -C memory
>
> [...]
> *-memory
> description: System memory
> physical id: 1
> size: 479MB

Of course I did this as root... This is not very helpful.

The second machine says:

> [...]
> *-memory
> description: System Memory
> physical id: 2b
> slot: System board or motherboard
> size: 512MB
> *-bank:0
> description: DIMM DRAM Synchronous
> physical id: 0
> slot: DIMM 1
> size: 256MB
> width: 64 bits
> *-bank:1
> description: DIMM DRAM Synchronous
> physical id: 1
> slot: DIMM 2
> size: 256MB
> width: 64 bits
> *-bank:2
> description: DIMM DRAM Synchronous [empty]
> physical id: 2
> slot: DIMM 3
> *-bank:3
> description: DIMM DRAM Synchronous [empty]
> physical id: 3
> slot: DDR 1
> *-bank:4
> description: DIMM DRAM Synchronous [empty]
> physical id: 4
> slot: DDR 2

What type of RAM (DDR? DDR-2?)?
How many slots are there? Five is nonsense...

"lshw -businfo" gives me the board manufacturer and product (ASUS P4G8X) and
that board has 4 slots. It can use different RAM speeds (PC2100, PC1600) but the
speed actually used in my machine is not told by lshw...

Unfortunately the tool is not very reliable and doesn't dig very deep so I need
something else (or have to use the screwdriver)...


Best, Stefan.

aiushtha 06-02-2011 10:07 AM

Hello, you can use dmidecode -t 17

cascade9 06-03-2011 02:58 AM

I think that since this thread is over 6 years old its not a problem anymore...

LaughingBoy 01-15-2013 12:26 AM

Quote:

Originally Posted by aiushtha (Post 4374173)
Hello, you can use dmidecode -t 17

Awesome. Cheers. Just what I was looking for. Even if it's non-intuitive, it gave the right results. :-)

dabler 04-22-2013 09:48 AM

Quote:

Originally Posted by LaughingBoy (Post 4870241)
Awesome. Cheers. Just what I was looking for. Even if it's non-intuitive, it gave the right results. :-)

Use this instead:
Code:

dmidecode -t memory


All times are GMT -5. The time now is 03:56 AM.