lscpu 列出以下内容
venki@venki-H8DCL:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 2
Core(s) per socket: 3 <------ I have 6 cores
Socket(s): 2
NUMA node(s): 2
Vendor ID: AuthenticAMD
CPU family: 21
Model: 2
Model name: AMD Opteron(tm) Processor 4334
Stepping: 0
CPU MHz: 1400.000
CPU max MHz: 3100.0000
CPU min MHz: 1400.0000
BogoMIPS: 6199.90
Virtualization: AMD-V
L1d cache: 16K
L1i cache: 64K
L2 cache: 2048K
L3 cache: 6144K
NUMA node0 CPU(s): 0-5
NUMA node1 CPU(s): 6-11
答案1
AMD 的规格表明 CPU 有六个核心和六个线程,但您看到三个核心,每个核心有两个线程。
将其与看似双插槽的主板和总“CPU 数量”(第 4 行)结合起来,它似乎可以检测到所有 CPU,只是没有按照您期望的方式显示总数。
答案2
根据第 4 行,您有 12 个 CPU。
也许您正在寻找这些信息:
cat /proc/cpuinfo