How to retrieve a physical hardware RAM device information on Linux

Below are few examples on how to retrieve a hardware information about RAM on Linux system.

Number of RAM slots

Number of RAM slots available on the motherboard:

# dmidecode -t 17 | grep ^H | wc -l
OR
# dmidecode -t 16 | grep Number

RAM module speed

# dmidecode -t 17 | grep Speed | uniq 

RAM module Manufacturer

# dmidecode -t 17 | grep Manu | uniq

RAM module Model

# dmidecode -t 17 | grep Part | uniq

Maximum Capacity per array

# dmidecode -t 16 | grep Max

RAM type

# dmidecode -t 17 | grep Type: | uniq

Installed vs empty RAM slots

# dmidecode -t 17 | grep Size
OR
# inxi -m

Memory Module Voltage

# dmidecode -t 5 | grep Volt