Linux get maximum RAM capacity and number of devices supported by server

To get maximum capacity of RAM supported by server use following command.

$ dmidecode -t 16

Output:

# dmidecode 2.11
SMBIOS 2.7 present.

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

Above output shows maximum capacity supported by server is 16GB and number of RAM devices supported by server is 2.

-Sany

Advertisements

Linux get used and unused RAM slots details with dmidecode

With dmidecode we can get number of used and unused RAM slots details on mother board.

Following is the command (We have to run dmidecode command with sudo/root permission):

$ dmidecode -t 17 | grep "Size:"

Output:

Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 2048 MB
Size: 2048 MB

Above output shows that there are 4 used slots and 12 unused slots.

To get number of available RAM slots:

$ dmidecode -t 17 | grep -c "Size:"

or

$ dmidecode -t 17 | grep "Size:" | wc -l

Output:

16

-Sany