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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 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站点无法打开的问题