一、 查看CPU
1.1 查看CPU个数
cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
2 //2颗CPU
注:uniq命令:删除重复行;wc –l命令:统计行数
1.2 查看CPU核数
cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu cores : 4 //4核
1.3 查看CPU型号
cat /proc/cpuinfo | grep 'model name' |uniq
model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz
1.4 查看CPU processor
cat /proc/cpuinfo | grep 'processor' |uniq |wc -l
16
1.5 查看CPU core id
cat /proc/cpuinfo | grep 'core id' |sort |uniq
core id:0
core id:1
core id:2
core id:3
core id:8
core id:9
core id:10
core id:11
1.6 查看CPU siblings
cat /proc/cpuinfo | grep 'siblings' |sort |uniq
siblings :8
总结:
该服务器 cpu cores为4个,physical id 2个,core id有8个,siblings的值为8,总共有16个processor。
所以这个服务器的CPU有2颗物理封装的处理器(Physical id);每个处理器又有4个处理核心(Cpu cores);每个Cpu core可划分为2个逻辑处理器(超线程技术)和拥有2个Processor;因此,每个物理处理器上有8个逻辑处理器,共有16个Processor,结构如下图:
二、查看内存
2.1 查看内存总数
cat /proc/meminfo | grep MemTotal
MemTotal: 32941268 kB //内存32G
2.2 查看内存条数
dmidecode |grep -A16 "Memory Device$"
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 2048 MB //1条2G内存
Form Factor: DIMM
Set: 1 Locator: DIMM1
Bank Locator: Not Specified
Type: DDR2
Type Detail: Synchronous
Speed: 667 MHz
Manufacturer: 7F7F7F7F7F510000
Serial Number: 0403E324
Asset Tag:450721
Part Number: 72T256220HR3SA
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 2048 MB //1条2G内存
Form Factor: DIMM
Set: 1 Locator: DIMM2
Bank Locator: Not Specified
Type: DDR2
Type Detail: Synchronous
Speed: 667 MHz
Manufacturer: 7F7F7F7F7F510000
Serial Number: 0403E324
Asset Tag:450721
Part Number: 72T256220HR3SA
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed //1个内存空槽
Form Factor: DIMM
Set: 2
Locator: DIMM3
Bank Locator: Not Specified
Type: DDR2 Type
Detail: Synchronous
Speed: Unknown
Manufacturer:
Serial Number:
Asset Tag:
Part Number:
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed //1个内存空槽
Form Factor: DIMM
Set: 2
Locator: DIMM4
Bank Locator: Not Specified
Type: DDR2 Type
Detail: Synchronous
Speed: Unknown
Manufacturer:
Serial Number:
Asset Tag:
Part Number:
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: No Module Installed //1个内存空槽
Form Factor: DIMM
Set: 3 Locator: DIMM5
Bank Locator: Not Specified
Type: DDR2 Type
Detail: Synchronous
Speed: Unknown
Manufacturer:
Serial Number:
Asset Tag:
Part Number:Memory Device Array Handle: 0x1000 Error Information Handle: Not
Provided Total Width: 72 bits Data Width: 64 bits Size: No Module
Installed //1个内存空槽 Form Factor: DIMM Set: 3 Locator: DIMM6 Bank
Locator: Not Specified Type: DDR2 Type Detail: Synchronous Speed:
Unknown Manufacturer: Serial Number: Asset Tag: Part Number:
总结:该服务器有两条2G内存 ,空余4个插槽
三 、查看硬盘
3.1 查看硬盘大小
fdisk -l | grep Disk
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
总结:硬盘大小146.7G,即厂商标称的160G
四 、查看服务器信息
4.1 查看出厂日期
dmidecode -s bios-release-date
4.2 查看序列号
dmidecode -s system-serial-number
4.3 查看服务器型号
dmidecode -s system-product-name