Can I identify my RAM without shutting down linux?

I’d like to price some new RAM for our in-house VMware testing server. (It’s a consumer box we use for testing our software on and running business VMs). I’ve forgotten what kind of RAM it has and I’d rather not reboot the machine and fire up memtest86+ just to get the specs of the RAM. Is there any way I can know what kind of RAM to buy without shutting down linux and kicking everyone off? E.G. is the information somewhere in /proc?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

You could try running (as root) dmidecode -t memory. I believe that’s what lshw uses (as described in the other Answer), but it provides information in another form, and lshw isn’t available on every linux distro. Also, in my case, dmidecode produces the Asset number, useful for plugging into Dell’s support web site.

Method 2

Here’s what lshw -c memory (as root) gives me:

  *-firmware              
       description: BIOS
       vendor: Acer
       physical id: 0
       version: V1.41 (01/07/08)
       size: 113KiB
       capacity: 960KiB
       capabilities: isa pci pcmcia pnp upgrade shadowing escd cdboot acpi usb agp biosbootspecification
  *-cache:0
       description: L1 cache
       physical id: 5
       slot: L1 Cache
       size: 64KiB
       capacity: 64KiB
       capabilities: asynchronous internal write-back
  *-cache:1
       description: L2 cache
       physical id: 6
       slot: L2 Cache
       size: 4MiB
       capacity: 4MiB
       capabilities: burst internal write-back
  *-memory
       description: System Memory
       physical id: 16
       slot: System board or motherboard
       size: 4GiB
     *-bank:0
          description: SODIMM DDR2 Synchronous 667 MHz (1.5 ns)
          product: SODIMM000
          vendor: Mfg 0
          physical id: 0
          serial: 1234-B0
          slot: M1
          size: 2GiB
          width: 64 bits
          clock: 667MHz (1.5ns)
     *-bank:1
          description: SODIMM DDR2 Synchronous 667 MHz (1.5 ns)
          product: SODIMM001
          vendor: Mfg 1
          physical id: 1
          serial: 1234-B1
          slot: M2
          size: 2GiB
          width: 64 bits
          clock: 667MHz (1.5ns)

What you are looking for is “System Memory“.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x