Determine number of RAM slots used/free

Asked by Matt Austin

My laptop has 512MB of RAM.

I don't currently have access to any tools to open up my laptop and find out if it has 1x512 chip, or 2x256 chips.

Is there a way to show this in Ubuntu/linux? I'd like to know if I have a free memory bay in my laptop so that I can add more memory.

Thanks, Matt.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Peter Cruickshank
Solved:
Last query:
Last reply:
Revision history for this message
Istvan Szekeres (szekeres) said :
#1

Hello Matt,

1. open a terminal window: Applications -> Accessories -> Terminal

2. in the terminal window type the following command:

  sudo dmidecode -t 6

If your laptop supports it, it should display the installed memory modules similarly to the following:

# dmidecode 2.8
SMBIOS 2.4 present.

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: DIMM1
        Bank Connections: 0 1
        Current Speed: Unknown
        Type: Other
        Installed Size: Not Installed
        Enabled Size: Not Installed
        Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: DIMM2
        Bank Connections: 2 3
        Current Speed: Unknown
        Type: Other
        Installed Size: 1024 MB (Double-bank Connection)
        Enabled Size: 1024 MB (Double-bank Connection)
        Error Status: OK

Regards,
Pistahh

Revision history for this message
Best Peter Cruickshank (petercruickshank) said :
#2

That's one way that might work. If not, try the following command:

sudo lshw -class memory

Revision history for this message
Matt Austin (mattaustin) said :
#3

Thanks very mucb for the replies!

The 1st way (sudo dmidecode -t 6) didn't output anything.

The 2nd way outputted:

  *-firmware
       description: BIOS
       vendor: Phoenix
       physical id: 0
       version: 73.08 (03/10/2006)
       size: 90KB
       capacity: 448KB
       capabilities: pci pcmcia pnp apm upgrade shadowing escd cdboot bootselect edd int13floppynec int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp smartbattery biosbootspecification
  *-cache
       description: L2 cache
       physical id: 5
       slot: L2 Cache
       size: 1MB
       capabilities: burst external write-through data
  *-memory
       description: System Memory
       physical id: 7
       slot: System board or motherboard
       size: 512MB
     *-bank
          description: DIMM DRAM Synchronous
          physical id: 0
          slot: M1
          size: 512MB
          width: 64 bits

So I guess that this means I have 1x512MB memory card. Is there an easy way to determine how many memory banks I have?

Thanks very much for the help.

Cheers - Matt.

Revision history for this message
Thomas Templin (coastgnu) said :
#4

Hi Matt
On Wed, 6. June 2007 11:37:01 Matt Austin wrote:
> Question #7764 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/7764
>
> Status: Answered => Open
>
> Matt Austin is still having a problem:
> Thanks very mucb for the replies!
>
> The 1st way (sudo dmidecode -t 6) didn't output anything.
>
> The 2nd way outputted:
>
> *-firmware
> description: BIOS
> vendor: Phoenix
> physical id: 0
> version: 73.08 (03/10/2006)
> size: 90KB
> capacity: 448KB
> capabilities: pci pcmcia pnp apm upgrade shadowing escd cdboot
> bootselect edd int13floppynec int5printscreen int9keyboard int14serial
> int17printer int10video acpi usb agp smartbattery biosbootspecification
> *-cache
> description: L2 cache
> physical id: 5
> slot: L2 Cache
> size: 1MB
> capabilities: burst external write-through data
> *-memory
> description: System Memory
> physical id: 7
> slot: System board or motherboard
> size: 512MB
> *-bank
> description: DIMM DRAM Synchronous
> physical id: 0
> slot: M1
> size: 512MB
> width: 64 bits
>
>
> So I guess that this means I have 1x512MB memory card. Is there an easy way
> to determine how many memory banks I have?
You should find it in the technical documentation shipped with your laptop or
in the web. Most vendors have support pages for each modell there. This
documentation also describes step by step how to add a new ram module.

Or maybe someone knows your laptop model and can give a hint, e.g. if you tell
us which model it is. :-)

regards.
thomas

Revision history for this message
Matt Austin (mattaustin) said :
#5

Thanks Peter Cruickshank, that solved my question.

Revision history for this message
ani (animesh-expertoutsource) said :
#6

Hi guys,
can u tell how to determine number of RAM slots used/free in Windows OS?

thanks, Animesh