F800上的CPU有多少个core?
Posted 中道学友
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了F800上的CPU有多少个core?相关的知识,希望对你有一定的参考价值。
本来想看看F800的一个节点上,每个core的cpu的使用情况。使用下面的命令,可以进行查看:
top –P
从命令输出来看,好像是有32个core嘛。
使用下面的命令可以看到具体的CPU的信息。
dmidecode
明明写的是16个core啊,但是注意, thread count是32. 这是怎么回事呢?
因为CPU使用一种叫做Hyper-threading (Hyper-Threading Technology, HTT)的技术。维基百科介绍如下:
For each processor core that is physically present, the operating system addresses two virtual (logical) cores and shares the workload between them when possible. The main function of hyper-threading is to increase the number of independent instructions in the pipeline; it takes advantage of superscalar architecture, in which multiple instructions operate on separate data in parallel. With HTT, one physical core appears as two processors to the operating system, allowing concurrent scheduling of two processes per core. In addition, two or more processes can use the same resources: if resources for one process are not available, then another process can continue if its resources are available.
使用HTT技术之后,一个物理的core在操作系统中会展现为两个processor,所以我们就看到了F800的top -P命令输出里的32个CPU了。
参考资料
==============
Hyper-threading
以上是关于F800上的CPU有多少个core?的主要内容,如果未能解决你的问题,请参考以下文章