22

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? For example, is the information somewhere in /proc?

2 Answers 2

30

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.

5
  • 1
    Are you sure it's not available everywhere? Which have you found lacking?
    – tshepang
    Commented Feb 3, 2011 at 18:24
  • RHEL5, what I run on all our servers and workstations. It might be in some 3rd party repo but I don't really need it if I have dmidecode.
    – jsbillings
    Commented Feb 3, 2011 at 18:33
  • I think dmidecode is the way to go. Also see this answer for a little more info.
    – belacqua
    Commented Feb 4, 2011 at 6:07
  • dmidecode has served me well multiple times for memory querying
    – BozoJoe
    Commented Feb 4, 2011 at 7:49
  • Note that lshw is in EPEL, which is as close to a non-third-party add-on repo as you can get with RHEL. (Although I just looked that up now, having only previously used dmidecode.)
    – mattdm
    Commented Mar 19, 2011 at 3:59
18

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".

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .