使用四核,但“/proc/cpuinfo”中只有 1 个 CPU 条目?我的电脑是否正在运行 SMP?

使用四核,但“/proc/cpuinfo”中只有 1 个 CPU 条目?我的电脑是否正在运行 SMP?

我刚刚升级了我的系统,并在升级时全新安装了 Ubuntu(上周从 CD 安装了 Oneiric Ocelot,但昨天升级到了 12.04 LTS)。我有一台 i7 920(四核超线程),所以我应该看到 8 个处理器,但我在系统监视器图表中只看到一个。

cat /proc/cpuinfo返回:

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 26
model name  : Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
stepping    : 4
microcode   : 0x10
cpu MHz     : 2672.633
cache size  : 8192 KB
physical id : 0
siblings    : 1
core id     : 0
cpu cores   : 1
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 11
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc up arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
bogomips    : 5345.26
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

/proc/cpuinfo根据我对以前使用 SMP 进行安装的记忆,每个处理器中应该有多个条目--one。但我只看到一个。

我首先想到的是安装了非 SMP 内核。然而,uname -a返回:

Linux compname 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

那么我是否使用了所有可用内核?如果没有,鉴于我似乎正在运行 SMP 内核,这是什么原因造成的?

谢谢!

答案1

在 BIOS 中启用 ACPI 功能。如果关闭此功能,您的系统将使用 1 个 CPU。

答案2

我遇到了类似的问题。发现自 05/22 起,VBox 6.1.34 默认启用了 ACPI 功能。他们现在添加了一个更简单的拖拽器设置 -> 系统 -> 处理器您可以从 1 到系统上可用的最大核心数中进行选择。

事实证明它默认设置为 1。一旦设置为任意多个核心,事情就会并行执行,例如:无需创建主机文件(https://stackoverflow.com/a/35705720/6923484

相关内容