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

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

Filed under: 东写西读 |  

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

上网google发现有个工具dmidecode(DMI table decoder)。它可以全面的显示你系统的信息,包括bios、cpu、内存等信息。

1
2
3
4
5
6
7
8
9
10
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

列出内存信息

1
2
3
4
5
6
7
8
9
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


Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.

(required)

(required)