系统监视器显示不正确的 CPU 数量

lig*_*ist 8 hardware cpu system-monitor cpuinfo 14.04

我目前正在运行 Ubuntu 14.04.2 桌面。

当我期待56时,系统监视器工具向我显示32 个CPU 。我应该担心吗?

系统监视器截图:

系统监视器的屏幕截图

如您所见,它显示了 32 个 CPU。

的输出lscpu

~$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                56
On-line CPU(s) list:   0-55
Thread(s) per core:    2
Core(s) per socket:    14
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 63
Stepping:              2
CPU MHz:               1337.882
BogoMIPS:              5189.07
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              35840K
NUMA node0 CPU(s):     0-13,28-41
NUMA node1 CPU(s):     14-27,42-55
Run Code Online (Sandbox Code Playgroud)

如您所见,根据lscpu,我应该有 56 个 CPU。

htop 还向我展示了 56 个 CPU。

htop 的截图

我的机器是戴尔的 T7910 Precision Tower。它有2 个Intel Xeon E5-2697 V3 处理器,每个处理器有 14 个内核,每个内核有 2 个线程(如 的输出所示lscpu,并在 BIO 中进一步确认)。

我记得在安装 Ubuntu 之前,当我从安装盘以“尝试 ubuntu”模式启动它时,在系统监视器下看到 56 个内核。

  1. 我的系统配置有问题吗?
  2. 如果有(例如,硬件故障),我可以做什么来验证?
  3. 另外,我注意到我的系统监视器没有“系统”选项卡。

Chr*_*iki 8

简而言之

  1. 您的系统配置可能没问题。Gnome-system-monitor 只是报告错误的数字。
  2. 不用担心。
  3. 正如上面的评论中已经提到的,“系统”选项卡在 Ubuntu 14.04 中消失了。

更详细

您已达到在libgtop由 gnome-system-monitor 使用的库)中设置的 CPU 数量上限。引用代码

/* Nobody should really be using more than 4 processors.
   Yes we are :)
   Nobody should really be using more than 32 processors.
*/
#define GLIBTOP_NCPU        32
Run Code Online (Sandbox Code Playgroud)

在比 Ubuntu 14.04 附带的版本更新的 libgtop 版本中,此限制已增加到 1024

除了在 gnome-system-monitor 中看不到大量 CPU 令人讨厌之外,这个错误应该是无害的。您可以通过安装更新​​版本的 libgtop 来修复它。或者,您可以升级到更新的 Ubuntu 版本。问题是 gnome-system-monitor 烦恼是否值​​得升级或尝试更新版本的 libgtop 的麻烦。

  • 事实上,Ubuntu 14.10 [在 2.30.0 版中使用 libgtop](http://packages.ubuntu.com/utopic/libgtop2-10) 已经有 [1024 个 CPU 的限制](https://git.gnome.org /browse/libgtop/tree/include/glibtop/cpu.h?id=LIBGTOP_2_30_0#n53)。 (2认同)