nproc 产生与硬件报告不一致的结果

抽象程序

我查看手册以计算 cpu

DESCRIPTION
       Print  the  number of processing units available to the current process, which may be less than
       the number of online processors

它输出

$ nproc
4

当我检查硬件设置时,它报告:

Number of Processors:   1
Total Number of Cores:  2

nproc 产生 4 倍 cpu 和 2 倍内核的结果。

我得到了物理和虚拟的术语来解释,
但我很困惑为什么不是 3 或 8?

道格·史密斯

您可能拥有: 一个处理器,即一个物理集成电路芯片;在该芯片上,您有 2 个内核,每个内核有两个线程,总共有 4 个 CPU。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章