Skip to content

Determine Memory/RAM Specs

:::info sudo is not necessary if you are already running as the root user :::

Command 1:

sudo dmidecode --type memory

Output 1:

# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.5.0 present.

Handle 0x0027, DMI type 16, 23 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: None
        Maximum Capacity: 64 GB
        Error Information Handle: Not Provided
        Number Of Devices: 2

Handle 0x0028, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x0027
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 16 GB
        Form Factor: SODIMM
        Set: None
        Locator: Controller0-ChannelA-DIMM0
        Bank Locator: BANK 0
        Type: DDR5
        Type Detail: Synchronous
        Speed: 4800 MT/s
        Manufacturer: A-DATA Technology
        Serial Number: 00185509
        Asset Tag: 9876543210
        Part Number:                     
        Rank: 1
        Configured Memory Speed: 4800 MT/s
        Minimum Voltage: 1.1 V
        Maximum Voltage: 1.1 V
        Configured Voltage: 1.1 V
        Memory Technology: DRAM
        Memory Operating Mode Capability: Volatile memory
        Firmware Version: Not Specified
        Module Manufacturer ID: Bank 5, Hex 0xCB
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None

Handle 0x0029, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x0027
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 16 GB
        Form Factor: SODIMM
        Set: None
        Locator: Controller1-ChannelA-DIMM0
        Bank Locator: BANK 0
        Type: DDR5
        Type Detail: Synchronous
        Speed: 4800 MT/s
        Manufacturer: A-DATA Technology
        Serial Number: 00185506
        Asset Tag: 9876543210
        Part Number:                     
        Rank: 1
        Configured Memory Speed: 4800 MT/s
        Minimum Voltage: 1.1 V
        Maximum Voltage: 1.1 V
        Configured Voltage: 1.1 V
        Memory Technology: DRAM
        Memory Operating Mode Capability: Volatile memory
        Firmware Version: Not Specified
        Module Manufacturer ID: Bank 5, Hex 0xCB
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None

Command 2:

# More concise summary without all the extra details
sudo dmidecode -t memory | egrep "Size:|Speed:|Type:|Part Number:"

Output 2:

        Error Correction Type: None
        Size: 16 GB
        Type: DDR5
        Speed: 4800 MT/s
        Part Number:                     
        Configured Memory Speed: 4800 MT/s
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None
        Size: 16 GB
        Type: DDR5
        Speed: 4800 MT/s
        Part Number:                     
        Configured Memory Speed: 4800 MT/s
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None

Command 3:

# For a tabular and more detailed view
sudo lshw -class memory

Output 3:

  *-firmware                
       description: BIOS
       vendor: American Megatrends International, LLC.
       physical id: 0
       version: 1.27
       date: 04/03/2025
       size: 64KiB
       capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int14serial int17printer int10video acpi usb biosbootspecification uefi
  *-memory
       description: System Memory
       physical id: 27
       slot: System board or motherboard
       size: 32GiB
     *-bank:0
          description: SODIMM Synchronous 4800 MHz (0.2 ns)
          vendor: A-DATA Technology
          physical id: 0
          serial: 00185509
          slot: Controller0-ChannelA-DIMM0
          size: 16GiB
          width: 64 bits
          clock: 505MHz (2.0ns)
     *-bank:1
          description: SODIMM Synchronous 4800 MHz (0.2 ns)
          vendor: A-DATA Technology
          physical id: 1
          serial: 00185506
          slot: Controller1-ChannelA-DIMM0
          size: 16GiB
          width: 64 bits
          clock: 505MHz (2.0ns)
  *-cache:0
       description: L1 cache
       physical id: 34
       slot: L1 Cache
       size: 288KiB
       capacity: 288KiB
       capabilities: synchronous internal write-back data
       configuration: level=1
  *-cache:1
       description: L1 cache
       physical id: 35
       slot: L1 Cache
       size: 192KiB
       capacity: 192KiB
       capabilities: synchronous internal write-back instruction
       configuration: level=1
  *-cache:2
       description: L2 cache
       physical id: 36
       slot: L2 Cache
       size: 7680KiB
       capacity: 7680KiB
       capabilities: synchronous internal write-back unified
       configuration: level=2
  *-cache:3
       description: L3 cache
       physical id: 37
       slot: L3 Cache
       size: 24MiB
       capacity: 24MiB
       capabilities: synchronous internal write-back unified
       configuration: level=3
  *-cache:4
       description: L1 cache
       physical id: 38
       slot: L1 Cache
       size: 256KiB
       capacity: 256KiB
       capabilities: synchronous internal write-back data
       configuration: level=1
  *-cache:5
       description: L1 cache
       physical id: 39
       slot: L1 Cache
       size: 512KiB
       capacity: 512KiB
       capabilities: synchronous internal write-back instruction
       configuration: level=1
  *-cache:6
       description: L2 cache
       physical id: 3a
       slot: L2 Cache
       size: 4MiB
       capacity: 4MiB
       capabilities: synchronous internal write-back unified
       configuration: level=2
  *-cache:7
       description: L3 cache
       physical id: 3b
       slot: L3 Cache
       size: 24MiB
       capacity: 24MiB
       capabilities: synchronous internal write-back unified
       configuration: level=3
  *-memory UNCLAIMED
       description: RAM memory
       product: Alder Lake PCH Shared SRAM
       vendor: Intel Corporation
       physical id: 14.2
       bus info: pci@0000:00:14.2
       version: 01
       width: 64 bits
       clock: 33MHz (30.3ns)
       capabilities: pm cap_list
       configuration: latency=0
       resources: iomemory:610-60f iomemory:610-60f memory:61271a4000-61271a7fff memory:61271aa000-61271aafff

Command 4:

# If you want to know the maximum supported RAM capacity and how many slots are availble
sudo dmidecode -t memory | egrep -i "maximum capacity|number of devices"

Output 4:

        Maximum Capacity: 64 GB
        Number Of Devices: 2