想给服务器加内存。不知道还有多少插槽可用。
上网google发现有个工具dmidecode(DMI table decoder)。它可以全面的显示你系统的信息,包括bios、cpu、内存等信息。
#sudo dmidecode --help
Usage: dmidecode [OPTIONS]
Options are:
-d, --dev-mem FILE Read memory from device FILE (default: /dev/mem)
-h, --help Display this help text and exit
-q, --quiet Less verbose output
-s, --string KEYWORD Only display the value of the given DMI string
-t, --type TYPE Only display the entries of given type
-u, --dump Do not decode the entries
-V, --version Display the version and exit
列出内存信息
# sudo dmidecode -t memory |grep Size
Size: 1024 MB
Size: No Module Installed
Size: 1024 MB
Size: No Module Installed
参考:
用dmidecode命令查看内存型号
http://blog.chinaunix.net/u2/68938/showart_692983.html
本文介绍如何利用dmidecode工具查询服务器内存状态,包括可用插槽数量及已安装内存大小。通过命令行展示具体操作步骤,并提供进一步参考资料。
2610

被折叠的 条评论
为什么被折叠?



