linux comand to show memory slots
To find out many hardware information on linux you can use the awesome
lshw but when not available also dmidecode.
To find out how many memory for examples:
-How many slots:
# dmidecode -t 16
-How much memory in each slots:
# dmidecode -t 17 |grep Size
-All memory info
# dmidecode -t 17
It can also be done for CPU,bios, etc…
Keyword Types
——————————
bios 0, 13
system 1, 12, 15, 23, 32
baseboard 2, 10
chassis 3
processor 4
memory 5, 6, 16, 17
cache 7
connector 8
slot 9
Great article with more details