Env:centos7.9
查看内存槽的数目、哪个槽位插了内存以及内存的大小
(base) user@user:~/gpu-burn-master$ sudo dmidecode | grep -P -A5 "Memory\s+Device" | grep Size | grep -v Range
[sudo] password for user:
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed