用dmidecode命令查看内存插槽占用情况

 

想给服务器加内存。不知道还有多少插槽可用。

上网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

你可能感兴趣的:(linux)