F800上的CPU有多少个core?

本来想看看F800的一个节点上,每个core的cpu的使用情况。使用下面的命令,可以进行查看:

top –P


从命令输出来看,好像是有32个core嘛。

image


使用下面的命令可以看到具体的CPU的信息。

dmidecode

image


明明写的是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

https://en.wikipedia.org/wiki/Hyper-threading

posted on   中道学友  阅读(294)  评论(2编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2011-05-18 Timer service recycle所做的事情跟直接restart timer service有什么不同?
2011-05-18 记解决一个数据库删不掉的问题
2010-05-18 什么是Document Object Model
2010-05-18 SQL Management Studio中返回长查询结果被截断的问题
2010-05-18 .dwp和.webpart的区别
2010-05-18 SPQuery在引用field的时候要用internal name
2010-05-18 SharePoint站点无法打开的问题

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示