幾個cpu
more /proc/cpuinfo |grep "physical id"|uniq|wc -l
每個cpu是幾核(假設cpu配置相同)
more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l
cpu使用率
vmstat
推薦小工具nmon(aix和linux都有)
top後按數字1,多個cpu的話會顯示多個
fdisk -l可以看到多個物理硬盤,做了硬raid只能看到一個硬盤
給你推薦個小工具
conky
用戶監視系統
dmidecode
通過上面信息我們可以知道,有8個核。從processor 0 到processor 7可以看出來。
有兩個cpu,從
physical id : 0
和
physical id : 1
可以看出有兩個cpu。
從
cpu cores : 4
可以看出每個cpu有四個內核
[admin@~]$ cat /proc/cpuinfo | grep "physical id" ; cat /proc/cpuinfo | grep "processor" ; fdisk -l ; uname -a ; cat /etc/redhat-release
physical id : 0
physical id : 1
physical id : 2
physical id : 3
physical id : 4
physical id : 5
physical id : 6
physical id : 7
processor : 0
processor : 1
processor : 2
processor : 3
processor : 4
processor : 5
processor : 6
processor : 7
Linux qa-qd-62-56 2.6.18-131.el5.customxen #1 SMP Tue Sep 15 15:46:11 CST 2009 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 5.3 (Tikanga)