Is it possible to query through Terminal how much ram my motherboard can take?

I'm looking to see if i can even upgrade.

  • 1
    Additional to reverendj1's answer I suggest to view your motherboard manual, as not all configuration's of filling empty RAM slots may work and some RAM manufacturers maybe supported/preferred etc. – math May 25 '12 at 6:50
  • Good point. Luckily in my case it was accurate! – chrisjlee Jun 1 '12 at 20:30

You can easily find it out with the below command:

sudo dmidecode -t 16

This command will tell you how much is in each slot already:

sudo dmidecode -t 17
| improve this answer | |
  • 3
    You may also want to inspect -t 2, which can provide information about the motherboard, including the model number. This model number can then lead to documentation, which could be more helpful to you. – Charles May 21 '12 at 19:53
  • 2
    And in a one liner: sudo dmidecode -t16,17 – Insperatus Jan 7 '13 at 17:22
  • 1
    sudo dmidecode -t memory is equivalent and excludes handle, type, and size info which may be considered extraneous – Insperatus Jan 7 '13 at 17:29

lshw (list hardware) with sudo, -Class memory:

sudo lshw -C memory
[sudo] password for stefan: 
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: 0208 (01/31/2005)
       size: 64KiB
       capacity: 448KiB
       capabilities: isa pci pcmcia pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp ls120boot zipboot biosbootspecification netboot
       description: L1 cache
       physical id: 5
       slot: L1-Cache
       size: 32KiB
       capacity: 32KiB
       capabilities: pipeline-burst internal varies data
       description: L2 cache
       physical id: 6
       slot: L2-Cache
       size: 2MiB
       capacity: 2MiB
       capabilities: pipeline-burst internal varies unified
       description: System Memory
       physical id: 1b
       slot: System board or motherboard
       size: 1GiB
       capacity: 3GiB
          description: DIMM SDRAM Synchronous
          product: PartNum0
          vendor: Manufacturer0
          physical id: 0
          serial: SerNum0
          slot: DIMM0
          size: 512MiB
          width: 64 bits
          description: DIMM SDRAM Synchronous
          product: PartNum1
          vendor: Manufacturer1
          physical id: 1
          serial: SerNum1
          slot: DIMM1
          size: 512MiB
          width: 64 bits

The part:

   size: 1GiB
   capacity: 3GiB

is what you're looking for. My system has 1GiB, but would take 3.

| improve this answer | |
  • Is there any way I can have it show the maximum RAM capacity per slot? – Waldir Leoncio Oct 28 '16 at 11:44
  • Sorry, I don't know. – user unknown Oct 29 '16 at 0:34

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.