Linux Check Ram Speed and Type Commands

See all GNU/Linux related FAQ
How do I check RAM speed and type (line DDR or DDR2 or DDR3 or DDR4) without opening my computer? I need to purchase RAM and I need to know the exact speed and type installed. How do I find out ram (SDRAM) information from a shell prompt? How can I check ram speed in Linux?

You need to use biosdecode command line utility. Dmidecode is a tool or dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. The output contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. This command works on Linux, UNIX and *BSD based computers.
Tutorial details
Difficulty levelEasy
Root privilegesYes
RequirementsLinux terminal
CategorySystem Management
OS compatibilityAlmaLinux Alpine Amazon Linux Arch CentOS Debian Fedora Linux Mint openSUSE Pop!_OS RHEL Rocky Stream SUSE Ubuntu
Est. reading time3 minutes

Linux check ram speed and type commands

The procedure is as follows:

  1. Open the terminal application or log in using ssh command.
  2. Type the “sudo dmidecode --type 17” command.
  3. Look out for “Type:” line in the output for ram type and “Speed:” for ram speed.

See/ Check Linux Ram Speed
Let us see all examples and commands in details.

Installation

Use the apt command/apt-get command to install dmidecode on a Debian or Ubuntu Linux:
$ sudo apt install dmidecode
Fedora Linux user, type the following dnf command:
$ sudo dnf install dmidecode
CentOS/RHEL/Oracle/Alma and Rocky Linux user, run the following yum command:
$ sudo yum install dmidecode
SUSE/OpenSUSE user, run the following zypper command:
$ sudo zypper install dmidecode
Alpine Linux users try the apk command:
$ sudo apk add dmidecode

How to check ram speed and type on Linux or Unix-like system

Open a shell prompt and type the following command as root user:
$ sudo dmidecode --type 17
OR
$ sudo dmidecode --type 17 | more
The output in red color is what you need to look out for:

# dmidecode 2.9
SMBIOS 2.4 present.

Handle 0x0018, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0017
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 2048 MB
        Form Factor: DIMM
        Set: None
        Locator: J6H1
        Bank Locator: CHAN A DIMM 0
        Type: DDR2
        Type Detail: Synchronous
        Speed: 800 MHz (1.2 ns)
        Manufacturer: 0x2CFFFFFFFFFFFFFF
        Serial Number: 0x00000000
        Asset Tag: Unknown
        Part Number: 0x5A494F4E203830302D3247422D413131382D

Handle 0x001A, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0017
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: J6H2
        Bank Locator: CHAN A DIMM 1
        Type: DDR2
        Type Detail: None
        Speed: Unknown
        Manufacturer: NO DIMM
        Serial Number: NO DIMM
        Asset Tag: NO DIMM
        Part Number: NO DIMM

You can just grep speed (see grep command) and skip all other the details using the following syntax:
$ sudo dmidecode --type 17 | less
$ sudo dmidecode -t memory | grep -i "speed"
$ sudo dmidecode | grep -A 15 -i "Memory"
$ sudo dmidecode --type 17 | grep -i "speed"

Sample outputs:

	Speed: 1333 MHz (0.8 ns)
	Speed: 1333 MHz (0.8 ns)

Say hello to the lshw command

Prerequisite
By default, lshw command may not be installed on your system. Hence, use the apk command on Alpine Linux, dnf command/yum command on RHEL & co, apt command/apt-get command on Debian, Ubuntu & co, zypper command on SUSE/OpenSUSE, pacman command on Arch Linux to install the lshw.
You can use the following command too. Type:
$ sudo lshw -short -C memory
Sample outputs:

/0/0                            memory         64KiB BIOS
/0/55/45                        memory         1MiB L2 cache
/0/55/46                        memory         256KiB L1 cache
/0/55/47                        memory         8MiB L3 cache
/0/48                           memory         32GiB System Memory
/0/48/0                         memory         8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/48/1                         memory         8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/48/2                         memory         8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/48/3                         memory         8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)

Another outputs from my work laptop:

How to find the frequency and type of my current RAM in Linux

Finding the frequency and type of my current RAM in Linux

Using the memconf to find Linux Memory Speed

We have a handy perl script that displays memory modules installed in a Sun/Oracle Solaris, Linux, FreeBSD or HP-UX system. First, download the script using the wget command (or use the curl command to download file)

export version="v3.17.1"
cd /tmp/
wget "https://master.dl.sourceforge.net/project/memconf/${version^}/memconf.${version}.pl.gz"
gunzip -v "memconf.${version}.pl.gz"
vim "memconf.${version}.pl"
sudo perl "memconf.${version}.pl" -v

The output shows the frequency and type of my current RAM installed on my laptop:

memconf:  V3.16 27-Jul-2022 https://sourceforge.net/projects/memconf/
hostname: wks01
manufacturer: LENOVO
model:    20QVCTO1WW (Six-Core Hyper-Threaded Intel(R) Corporation Intel(R) Core(TM) i7-9850H @ 2.60GHz)
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4), Ubuntu 20.04.5 LTS, 64-bit kernel, Linux 5.15.0-46-generic
U3E1: Intel(R) Corporation Intel(R) Core(TM) i7-9850H @ 2.60GHz cpu, system freq: 100MHz
Memory Error Correction: None
Maximum Memory: 65536MB (64GB)
ChannelA-DIMM0 BANK 0: 32 GB 2667 MT/s Synchronous DDR4 SODIMM, Samsung M471A4G43MB1-CTD
empty memory sockets: ChannelB-DIMM0 BANK 2
total memory = 32768MB (32GB)

Here is another outputs:

memconf:  V3.17.1 29-Mar-2024 https://sourceforge.net/projects/memconf/
hostname: wks01
manufacturer: LENOVO
model:    20NJ0007US (Advanced Micro Devices, Inc. AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx 2300MHz, AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx)
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4), Ubuntu 20.04.6 LTS, 64-bit kernel, Linux 5.15.0-107-generic
FP5: Advanced Micro Devices, Inc. AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx 2300MHz cpu, system freq: 100MHz
Memory Error Correction: None
Maximum Memory: 65536MB (64GB)
DIMM 0 P0 CHANNEL A: 8192MB 2400 MT/s Synchronous Unbuffered (Unregistered) DDR4 SODIMM, Samsung M471A1G44AB0-CTD
DIMM 0 P0 CHANNEL B: 8192MB 2400 MT/s Synchronous Unbuffered (Unregistered) DDR4 SODIMM, Samsung M471A1K43DB1-CTD
empty memory sockets: None
total memory = 16384MB (16GB)

Finding the frequency of my currently installed RAM using the GUI

You can use the CPU-X GUI. It is similar to CPU-Z from MS-Windows world.

Installing CPU-X

Type command as per your Linux distro. For Debian/Ubuntu Linux try the apt command/apt-get command:
$ sudo apt install cpu-x
Fedora user try the dnf command:
$ sudo dnf install cpu-x
OpenSUSE or SUSE Linux user try the zypper command (info):
$ sudo zypper install cpu-x
FreeBSD Unix user try the pkg command to install the same:
$ sudo pkg install cpu-x

Using CPU-X

Simply type the cpu-x command $ sudo cpu-x
Click on the Memory tab to view details:
Finding the frequency of my currently installed RAM using the Linux GUI tool named cpu-x

Conclusion

You learned how to find out ram speed and other information using Linux and Unix terminal commands. For more info see the following tutorials:

Still have a problem? Post your query below.

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.
CategoryList of Unix and Linux commands
AnsibleCheck version Fedora FreeBSD Linux Ubuntu 18.04 Ubuntu macOS
Archivingz commands
Backup ManagementDebian/Ubuntu FreeBSD RHEL
Database ServerBackup MySQL server MariaDB Galera cluster MariaDB TLS/SSL MariaDB replication MySQL Server MySQL remote access
Download managerswget
Driver ManagementLinux Nvidia driver lsmod
Documentationhelp mandb man pinfo
Disk Managementdf duf ncdu pydf
File Managementcat cp less mkdir more tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04 Ubuntu 24.04
KVM VirtualizationCentOS/RHEL 7 CentOS/RHEL 8 Debian 9/10/11 Ubuntu 20.04
Linux Desktop appsChrome Chromium GIMP Skype Spotify VLC 3
LXDBackups CentOS/RHEL Debian 11 Fedora Mount dir Ubuntu 20.04 Ubuntu 22.04
Modern utilitiesbat exa
Network ManagementMonitoring tools Network services RHEL static IP Restart network interface nmcli
Network UtilitiesNetHogs dig host ip nmap ping
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 11 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Power Managementupower
Package Managerapk apt-get apt yum
Processes Managementbg chroot cron disown fg glances gtop iotop jobs killall kill pidof pstree pwdx time vtop
Searchingag egrep grep whereis which
Shell builtinscompgen echo printf
System Managementreboot shutdown
Terminal/sshsshpass tty
Text processingcut rev
Text Editor6 Text editors Save and exit vim
User Environmentexit who
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami w
User Management/etc/group /etc/passwd /etc/shadow chsh
Web ServerApache Let's Encrypt certificate Lighttpd Nginx Security Nginx
WireGuard VPNAlpine Amazon Linux CentOS 8 Debian 10 Firewall Ubuntu 20.04 qrencode
42 comments… add one
  • mhernandez Aug 26, 2008 @ 10:22

    lol; i like you’re site and your howto’s very very much. However, now I know I have to follow your stuff with an unknown type of ram, at an unknown speed. lol

    seriously, keep up the good work! :D

  • Mark Aug 26, 2008 @ 11:04

    If only there was a way to see what rank it is too :(.

  • Juan Pedro Sanchez Aug 26, 2008 @ 16:03

    I’m using Ubuntu 8.10 alpha 3 32bits.
    Using dmidecode I get the following results:
    jp@jp-desktop810:~$ sudo dmidecode –type 17
    [sudo] password for jp:
    # dmidecode 2.9
    SMBIOS 2.2 present.

    Invalid entry length (0). DMI table is broken! Stop.

    jp@jp-desktop810:~$ sudo dmidecode –type 17 | more
    # dmidecode 2.9
    SMBIOS 2.2 present.

    Invalid entry length (0). DMI table is broken! Stop.

    So, dmidecode is same version, SMBIOS is 2.2 instead of 2.4. And I didn’t get the information from dmidecode.

  • diay Aug 26, 2008 @ 17:21

    Juan,

    You may need to report bug to Ubuntu team. There is not much we can do to fix this issue.

    Mark,

    ditto

  • sajmon Aug 26, 2008 @ 21:32

    I get only this:

    # dmidecode 2.9
    SMBIOS 2.3 present.

    and no more info!
    Tried both commands.
    How can i get info like size, speed, type etc. ?

  • Gagan Brahmi Aug 27, 2008 @ 2:15

    dmidecode –type memory

    This should work as well :)

  • Gagan Brahmi Aug 27, 2008 @ 6:02

    sajmon,

    You can try using the following command combination and see if that works:

    dmidecode |grep -A20 ^Memory

  • sajmon Aug 27, 2008 @ 14:35

    Gagan Brahmi,
    Thanks, works well. :P

  • Sukhdev Sep 4, 2008 @ 5:57

    I am using Fedora 9. 2.6.25.14-108.fc9.i686
    Intel(R) Pentium(R) 4 CPU 3.00GHz
    Here is the dmidecode –type 17 output.
    No type and speed info.

    # dmidecode 2.9
    SMBIOS 2.3 present.

    Handle 0x0028, DMI type 17, 27 bytes
    Memory Device
    Array Handle: 0x0027
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 1024 MB
    Form Factor: DIMM
    Set: None
    Locator: A0
    Bank Locator: Bank0/1
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: None
    Serial Number: None
    Asset Tag: None
    Part Number: None

    Handle 0x0029, DMI type 17, 27 bytes
    Memory Device
    Array Handle: 0x0027
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: A1
    Bank Locator: Bank2/3
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: None
    Serial Number: None
    Asset Tag: None
    Part Number: None

    Handle 0x002A, DMI type 17, 27 bytes
    Memory Device
    Array Handle: 0x0027
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 1024 MB
    Form Factor: DIMM
    Set: None
    Locator: A2
    Bank Locator: Bank4/5
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: None
    Serial Number: None
    Asset Tag: None
    Part Number: None

    Handle 0x002B, DMI type 17, 27 bytes
    Memory Device
    Array Handle: 0x0027
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: A3
    Bank Locator: Bank6/7
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: None
    Serial Number: None
    Asset Tag: None
    Part Number: None

    What will be the problem?

  • Gagan Brahmi Sep 4, 2008 @ 7:48

    Is this a white box?? That is what I can make out. Just try the following command to see the server model:

    dmidecode –type system
    or
    dmidecode –type 1

  • KD Kanwardeep Dec 9, 2008 @ 23:18

    Thanks A Lot for this information

  • BalaKumar Jan 15, 2009 @ 6:26

    Thank u So Much very useful tips..

  • Ceylonerana Mar 26, 2009 @ 16:11

    Thank You very much. Keep this up.

  • Roachy Jun 1, 2009 @ 15:32

    Many thanks – useful tip!

  • Prashanth BC Jul 17, 2009 @ 2:59

    Awesome dude…

  • tendo Aug 24, 2009 @ 23:19

    Thanks for the post! This helped me out with a production server I couldn’t turn off. :)

  • Nosferax Sep 4, 2009 @ 19:24

    I have the same problem. Speed : Unknown.

    Running Ubuntu 9.04.

  • Bob Estes Nov 8, 2009 @ 5:41

    I get the following:
    $ sudo dmidecode –type 17 | more
    bash: $: command not found
    [root@localhost bob]# demidecode –type 17
    bash: demidecode: command not found
    [root@localhost bob]# demidecode -type system
    bash: demidecode: command not found

    • David Dreggors Apr 22, 2010 @ 16:10

      You show the command you type as:

      [root@localhost bob]# demidecode –type 17
      bash: demidecode: command not found

      Yet the command should be:

      [root@localhost bob]# dmidecode –type 17

      Note the misspelling… the command is ‘dmidecode’ not ‘demidecode’.

  • nima Feb 21, 2010 @ 12:37

    Hi
    Thanks for your good article
    Unfortunately dmidecode can not give correct information about my memory!!
    I have 4Gig DDR3 but dmideocde can not determine type my ram,and shoe “type= other” and “speed: 667Mhz”.
    But speed of my ram is 1333 MHz.

    Thanks for nay help or guidance

    • munzli Sep 15, 2010 @ 13:38

      @nima
      DDR = Double Data Rate
      so if a clock speed of 667Mhz is displayed the data rate speed is: 1334Mhz

  • nima0102 Sep 16, 2010 @ 6:47

    Hi
    @munzli
    Thanks for your reply
    According to wikipedia http://en.wikipedia.org/wiki/Ddr3 :
    DDR3 modules can transfer data at a rate of 800–2133 MT/s using both rising and falling edges of a 400–1066 MHz I/O clock. Sometimes, a vendor may misleadingly advertise the I/O clock rate by labeling the MT/s as MHz.
    1333 is data rate not clock rate :P
    I addition wikipedia web page, there is one good table for comparing.

    Thanks again.

  • Sarit Jan 30, 2011 @ 17:05

    Thanks you for you information.
    It is very very useful.
    ^^

  • Matt Bugno May 26, 2011 @ 22:54

    Thanks for the tip! Knew this would be out there somewhere for a Linux machine since it can pretty much tell you every thing you want to know about your equipment. Glad there are people to pass on help.

  • rahul Oct 6, 2011 @ 6:54

    Thanks!

    It was very helpful dmicode –type 17
    :)
    Cheers

  • Ewa Feb 7, 2012 @ 15:54

    1333MHz PC3-1066 DDR3 DIMM Desktop Memory KVR1333D3N9K2/4G (Electronics) I scuuessfclly paired these sticks with Kingston KVR1333D3K2/4GR from another retailer in a dual-channel RAM configuration. So that makes a total of 4 sticks, 8 GB. In order to take advantage of this much memory, I’m running a 64-bit operating system (as opposed to a 32-bit one). These are DDR3 memory sticks, so be sure you have an AM3 motherboard if you like AMD processors, or whatever on the Intel side handles DDR3 if you go for Intel processors.

  • Vladan Feb 15, 2012 @ 13:34

    I typed: sudo dmidecode –type 17

    and received information that the speed of my RAM is unknown. Here is the output:

    # dmidecode 2.9
    SMBIOS 2.3 present.
    
    Handle 0x003B, DMI type 17, 27 bytes
    Memory Device
    	Array Handle: 0x0039
    	Error Information Handle: Not Provided
    	Total Width: 64 bits
    	Data Width: 64 bits
    	Size: 512 MB
    	Form Factor: DIMM
    	Set: None
    	Locator: DIMM0
    	Bank Locator: BANK0
    	Type: DDR
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Manufacturer0
    	Serial Number: SerNum0
    	Asset Tag: AssetTagNum0
    	Part Number: PartNum0
    
    Handle 0x003D, DMI type 17, 27 bytes
    Memory Device
    	Array Handle: 0x0039
    	Error Information Handle: Not Provided
    	Total Width: Unknown
    	Data Width: Unknown
    	Size: No Module Installed
    	Form Factor: DIMM
    	Set: None
    	Locator: DIMM1
    	Bank Locator: BANK1
    	Type: Unknown
    	Type Detail: Unknown
    	Speed: Unknown
    	Manufacturer: Manufacturer1
    	Serial Number: SerNum1
    	Asset Tag: AssetTagNum1
    	Part Number: PartNum1
    
    Handle 0x003F, DMI type 17, 27 bytes
    Memory Device
    	Array Handle: 0x0039
    	Error Information Handle: Not Provided
    	Total Width: 64 bits
    	Data Width: 64 bits
    	Size: 512 MB
    	Form Factor: DIMM
    	Set: None
    	Locator: DIMM2
    	Bank Locator: BANK2
    	Type: DDR
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Manufacturer2
    	Serial Number: SerNum2
    	Asset Tag: AssetTagNum2
    	Part Number: PartNum2
    
    Handle 0x0041, DMI type 17, 27 bytes
    Memory Device
    	Array Handle: 0x0039
    	Error Information Handle: Not Provided
    	Total Width: 64 bits
    	Data Width: 64 bits
    	Size: 256 MB
    	Form Factor: DIMM
    	Set: None
    	Locator: DIMM3
    	Bank Locator: BANK3
    	Type: DDR
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Manufacturer3
    	Serial Number: SerNum3
    	Asset Tag: AssetTagNum3
    	Part Number: PartNum3
    

    Any ideas would be appreciated?

  • Nitin` Feb 19, 2012 @ 9:06

    Superb. Thank you!

  • elaurum Jul 13, 2012 @ 4:57

    awesome man ! great tricks

  • Matthew Koundakjian Feb 14, 2013 @ 19:01

    The ram in one of my workstations shows:
    Total Width: 72 bits
    Data Width: 64 bits
    Type Detail: Synchronous Unbuffered (Unregistered)

    I imagine that the 72 vs 64 means it’s ECC but the type detail means “unregistered.”

    This seem right?

  • Kalin Mandaliev May 21, 2013 @ 9:07
    root@weba:~# dmidecode -t 17
    # dmidecode 2.11
    SMBIOS 2.7 present.
    
    Handle 0x002C, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x002A
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: 4096 MB
    	Form Factor: DIMM
    	Set: None
    	Locator: P1-DIMMA1
    	Bank Locator: Node0_Bank0
    	Type: DDR3
    	Type Detail: Registered (Buffered)
    	Speed: 1333 MHz
    	Manufacturer: Nanya             
    	Serial Number: C9542A26    
    	Asset Tag: Dimm0_AssetTag
    	Part Number: NT4GC72B8PG0N
    	Rank: 2
    	Configured Clock Speed: 1333 MHz
    
    Handle 0x002E, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x002A
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: 4096 MB
    	Form Factor: DIMM
    	Set: None
    	Locator: P1-DIMMA2
    	Bank Locator: Node0_Bank0
    	Type: DDR3
    	Type Detail: Registered (Buffered)
    	Speed: 1333 MHz
    	Manufacturer: Nanya             
    	Serial Number: AE5A2A29    
    	Asset Tag: Dimm1_AssetTag
    	Part Number: NT4GC72B8PG0N
    	Rank: 2
    	Configured Clock Speed: 1333 MHz
    
    Handle 0x0030, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x002A
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: No Module Installed
    	Form Factor: DIMM
    	Set: None
    	Locator: P1-DIMMA3
    	Bank Locator: Node0_Bank0
    	Type: Unknown
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Dimm2_Manufacturer
    	Serial Number: Dimm2_SerNum
    	Asset Tag: Dimm2_AssetTag
    	Part Number: Dimm2_PartNum
    	Rank: Unknown
    	Configured Clock Speed: Unknown
    
    Handle 0x0032, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x002A
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: No Module Installed
    	Form Factor: DIMM
    	Set: None
    	Locator: P1-DIMMB1
    	Bank Locator: Node0_Bank0
    	Type: Unknown
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Dimm3_Manufacturer
    	Serial Number: Dimm3_SerNum
    	Asset Tag: Dimm3_AssetTag
    	Part Number: Dimm3_PartNum
    	Rank: Unknown
    	Configured Clock Speed: Unknown
    
    Handle 0x0036, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x0034
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: No Module Installed
    	Form Factor: DIMM
    	Set: None
    	Locator: P2-DIMME1
    	Bank Locator: Node1_Bank0
    	Type: Unknown
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Dimm0_Manufacturer
    	Serial Number: Dimm0_SerNum
    	Asset Tag: Dimm0_AssetTag
    	Part Number: Dimm0_PartNum
    	Rank: Unknown
    	Configured Clock Speed: Unknown
    
    Handle 0x0038, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x0034
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: No Module Installed
    	Form Factor: DIMM
    	Set: None
    	Locator: P2-DIMME2
    	Bank Locator: Node1_Bank0
    	Type: Unknown
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Dimm1_Manufacturer
    	Serial Number: Dimm1_SerNum
    	Asset Tag: Dimm1_AssetTag
    	Part Number: Dimm1_PartNum
    	Rank: Unknown
    	Configured Clock Speed: Unknown
    
    Handle 0x003A, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x0034
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: No Module Installed
    	Form Factor: DIMM
    	Set: None
    	Locator: P2-DIMME3
    	Bank Locator: Node1_Bank0
    	Type: Unknown
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Dimm2_Manufacturer
    	Serial Number: Dimm2_SerNum
    	Asset Tag: Dimm2_AssetTag
    	Part Number: Dimm2_PartNum
    	Rank: Unknown
    	Configured Clock Speed: Unknown
    
    Handle 0x003C, DMI type 17, 34 bytes
    Memory Device
    	Array Handle: 0x0034
    	Error Information Handle: Not Provided
    	Total Width: 72 bits
    	Data Width: 64 bits
    	Size: No Module Installed
    	Form Factor: DIMM
    	Set: None
    	Locator: P2-DIMMF1
    	Bank Locator: Node1_Bank0
    	Type: Unknown
    	Type Detail: Synchronous
    	Speed: Unknown
    	Manufacturer: Dimm3_Manufacturer
    	Serial Number: Dimm3_SerNum
    	Asset Tag: Dimm3_AssetTag
    	Part Number: Dimm3_PartNum
    	Rank: Unknown
    	Configured Clock Speed: Unknown
    
    root@weba:~#
  • christopher Feb 3, 2014 @ 20:15

    On SalixOS dmidecode as in the article but with type 16 gave me the maximum amount of RAM that could be installed, handy, as HP’s own support page had misleading info.

    Also, dmidecode > /home/usernamedude/Documents/dmi.txt writes a WHOLE LOT OF INFO to a text file in the given path.

    Thanks for the article, this was really helpful.

  • Phil Oct 31, 2016 @ 21:21

    FWIW, this only works on Intel-based Linux. There is no equivalent I could find for my RaspberryPi box.

    • 🛡️ Vivek Gite (Author and Admin)Vivek Gite Oct 31, 2016 @ 21:54

      Yes, but have you tried dmesg output?

      • Phil Oct 31, 2016 @ 23:17

        Sure, but it’s not quite the same.

  • CyrIng Feb 7, 2017 @ 14:10

    CoreFreq shows in a console UI the DRAM CAS & others timings , but also its frequency and the Bus speed, all queried from the chipset.
    CoreFreq is on the

  • Gary Kramlich Aug 17, 2017 @ 21:37

    dmidecode is notorious for being incorrect, it might be better know but historically it lied, a lot. But there’s a chance you can talk to the eeprom on the dimms directly by using decode-dimms. It’s in the i2c-tools package in Debian. You’ll need to load the eeprom module, but if you BIOS is cool it’ll pass the call through to the RAM itself and you can get the real info. If the BIOS isn’t cool, it’ll block the call and you won’t be able to talk to the chips :-/.

  • Benjamin Sep 9, 2022 @ 5:26

    It worked perfectly on my Thinkpad laptop as I wanted an upgrade from 8GB to 16GB, and I wasn’t sure about the RAM speed. I got the correct module from a local store and now typing this command from the same laptop. Beers on me next time we are actually in the same place! Cheers, mate.

  • Gabriele Iannetti Mar 14, 2023 @ 13:01

    You can grep the desired information with one call by using regex e.g.:

    $ dmidecode -t memory | grep -E "Speed:|Type:" | sort | uniq -c
         16         Configured Memory Speed: 3200 MT/s
          1         Error Correction Type: Multi-bit ECC
         16         Speed: 3200 MT/s
         16         Type: DDR4
    
  • Anonymous Dec 5, 2023 @ 19:40

    Thanks, love. memconf is what I needed. T

  • Michael Jul 11, 2024 @ 6:38

    This is so well put. Great work, This was definitely what I was looking for. I am bookmarking this for later.

  • carvalho Jul 14, 2024 @ 23:19

    nice !

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.