想给服务器加内存。不知道还有多少插槽可用。
上网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工具查询服务器的内存信息,包括可用插槽数量及已安装内存容量等详情,帮助用户更好地了解和升级服务器硬件。
437

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



