方法1:
# dmidecode 命令
在结果中Processor Information部分,可以看到
Processor Information
Socket Designation: Proc 1 #物理CPU1
Type: Central Processor
Family: Xeon
Manufacturer: Intel
ID: ......
Signature: Type 0, Family 6, Model 45, Stepping 7
.....
Core Count: 8
Core Enabled: 8 #内核数
Thread Count: 16 #线程数=内核数X2
Characteristics:
64-bit capable
Handle 0x0401, DMI type 4, 42 bytes
Processor Information
Socket Designation: Proc 2 #物理CPU2
Type: Central Processor
Family: Xeon
Manufacturer: Intel