LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2011, 05:14 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
How to determine the number of RAM slots using dmidecode?


Hi I m using SUN Server .
How would i determine the number of RAM slots using dmidecode.

I m running following command to get RAM information.

Code:
# dmidecode -t memory
But It seems to be little confusing to get exact number of RAM slots .
I would like to use the output in the script .

I m using bank keyword to determine the number of Ram slots( I m not sure as this is the keyword i should search for).
I m getting following output for .
Code:
# dmidecode -t memory | grep "Bank" | wc -l
65
However the actual physical RAM slots are 64 .I m not sure why the extra information is displayed.
I can see (Bank Locator: /SYS/MB/P0/MR0) for all 64 entries and get one blank entry as (Bank Locator

I m confused is this the exact way to determine the RAM slots.
Why the last entry for Bank Locator is empty?
 
Old 04-05-2011, 05:32 AM   #2
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
I dont think you can get the number of banks from dmidecode. I'd be more than happy to be wrong on that, if anybody knows more than me.

lshw will show you the banks-

Code:
*-memory
          description: System Memory
          physical id: 25
          slot: System board or motherboard
          size: 4GiB
        *-bank:0
             description: DIMM 1800 MHz (0.6 ns)
             physical id: 0
             slot: A0
             size: 2GiB
             width: 64 bits
             clock: 1800MHz (0.6ns)
        *-bank:1
             description: DIMM 1800 MHz (0.6 ns)
             physical id: 1
             slot: A1
             size: 2GiB
             width: 64 bits
             clock: 1800MHz (0.6ns)
        *-bank:2
             description: DIMM 1800 MHz (0.6 ns) [empty]
             physical id: 2
             slot: A2
             width: 64 bits
             clock: 1800MHz (0.6ns)
        *-bank:3
             description: DIMM 1800 MHz (0.6 ns) [empty]
             physical id: 3
             slot: A3
             width: 64 bits
             clock: 1800MHz (0.6ns)
Be warned, I've seen lshw output report banks not actually physically present.

Personally, I always check for available memory banks the easy way, with the ever reliable 'check with eyeballs' method. Or, if I dont have physical access, I normally use the model name and number to check the hardware specs online.

*edit- heh, I should have known there would be a way of getting the banks with dmidecode, since its pretty closely related to lshw.

Odd reout though, it gives the bank0 as bank0/1. No idea on if there would be any difference with single/double sided RAM report with dmidecode. I'll have to try it on a system with single sided RAM to see.

Last edited by cascade9; 04-05-2011 at 05:39 AM.
 
1 members found this post helpful.
Old 04-05-2011, 09:26 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by cascade9 View Post
I dont think you can get the number of banks from dmidecode. I'd be more than happy to be wrong on that, if anybody knows more than me.

lshw will show you the banks-

Code:
*-memory
          description: System Memory
          physical id: 25
          slot: System board or motherboard
          size: 4GiB
        *-bank:0
             description: DIMM 1800 MHz (0.6 ns)
             physical id: 0
             slot: A0
             size: 2GiB
             width: 64 bits
             clock: 1800MHz (0.6ns)
        *-bank:1
             description: DIMM 1800 MHz (0.6 ns)
             physical id: 1
             slot: A1
             size: 2GiB
             width: 64 bits
             clock: 1800MHz (0.6ns)
        *-bank:2
             description: DIMM 1800 MHz (0.6 ns) [empty]
             physical id: 2
             slot: A2
             width: 64 bits
             clock: 1800MHz (0.6ns)
        *-bank:3
             description: DIMM 1800 MHz (0.6 ns) [empty]
             physical id: 3
             slot: A3
             width: 64 bits
             clock: 1800MHz (0.6ns)
Be warned, I've seen lshw output report banks not actually physically present.

Personally, I always check for available memory banks the easy way, with the ever reliable 'check with eyeballs' method. Or, if I dont have physical access, I normally use the model name and number to check the hardware specs online.

*edit- heh, I should have known there would be a way of getting the banks with dmidecode, since its pretty closely related to lshw.

Odd reout though, it gives the bank0 as bank0/1. No idea on if there would be any difference with single/double sided RAM report with dmidecode. I'll have to try it on a system with single sided RAM to see.
lol Check with eyeball method.

Code:
# lshaw
-bash: lshaw: command not found
 
Old 04-05-2011, 09:40 AM   #4
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
lshw, not lshaw.

BTW, at least here, I only get the bank reout from lshw in super-user. As a normal user, I just get the installed memory, no bank readings. Like this-

Code:
*-memory
          description: System memory
          physical id: 0
          size: 3964MiB
That could change on disro, I wouldnt know. I dont run lshw/dmidecode much, I really do prefer to check the hardware physically. Probably in part its an excuse to check out some naked hardware.

*Homer simpson drool noise* Grrrgrrlggrlll....naked hardware.
 
Old 04-05-2011, 10:30 AM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by cascade9 View Post
lshw, not lshaw.

BTW, at least here, I only get the bank reout from lshw in super-user. As a normal user, I just get the installed memory, no bank readings. Like this-

Code:
*-memory
          description: System memory
          physical id: 0
          size: 3964MiB
That could change on disro, I wouldnt know. I dont run lshw/dmidecode much, I really do prefer to check the hardware physically. Probably in part its an excuse to check out some naked hardware.

*Homer simpson drool noise* Grrrgrrlggrlll....naked hardware.
i guess following is a ODD entry.
All other entries have Locator and Bank Locator values however this entry doesnt have one.
Also Serial Number is not present in this entry.

One more highlighting point is it has Type Detail as Non-Volatile. I m not sure it to call ROM.Any suggestion will be appreciated.

Code:
Handle 0x00BE, DMI type 17, 28 bytes.
Memory Device
        Array Handle: 0x00BC
        Error Information Handle: Not Provided
        Total Width: 8 bits
        Data Width: 8 bits
        Size: 4096 kB
        Form Factor: Other
        Set: None
        Locator:
        Bank Locator:
        Type: Flash
        Type Detail: Non-Volatile
        Speed: 33 MHz (30.3 ns)
        Manufacturer: ST
        Serial Number:
        Asset Tag:
        Part Number: XXXXXXX
 
Old 04-07-2011, 03:45 AM   #6
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
If it wasnt for the 8-bit width and the way I dont seem to get a readout like that with dmidecode, I would guess it was the BIOS.

What motherboard is it?
 
Old 04-07-2011, 11:28 PM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Its Sun Hardware.
 
Old 04-10-2011, 08:29 AM   #8
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Sun, not hardware I've had much experience with. Sorry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get the number of PCI slots Madhusudhan Linux - Software 5 07-03-2011 11:45 AM
How can i see ram slots in the linux? epamuk Linux - Server 2 11-09-2009 08:11 AM
dmidecode reports 128MG RAM Module Rupertt Linux - Hardware 1 02-24-2009 11:42 AM
can people put up their sudo dmidecode -s system-serial-number shirishag75 Linux - Hardware 7 01-27-2009 02:37 PM
how to find out if im using 1 or 2 slots for ram? jfall Linux - Hardware 8 03-07-2005 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration