如何获取CPU的参数

wuye1986 2011-04-27 04:06:57
请问如何获取Intel CPU的参数,比如TLB有多少个Entries,使用RightMark Analyzer 3.8貌似不支持较新的intel CPU,使用Calibrator的结果误差较大,Intel有没有提供这样的工具
...全文
94 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
wuye1986 2011-04-28
  • 打赏
  • 举报
回复
感谢iclifort,这段话解决了我实验中的一个疑惑,对这种新的架构,不知道在运行程序时能否体现其优势
wuye1986 2011-04-28
  • 打赏
  • 举报
回复
我现在用CPUID 指令进行获取,然后参照处理器手册解析获取的结果,对比了已知的处理器参数,基本是正确的。
intel_iclifort 2011-04-28
  • 打赏
  • 举报
回复
一时手边没有找到相关的文档,从网上找一些数据,仅供参考

the Core 2 has used a level 1 TLB that is extremely small (16 entries) but also very fast for loads only, and a larger level 2 TLB (256 entries) that handled loads missed in the level 1 TLB, as well as stores.

Nehalem now has a true two-level TLB: the first level of TLB is shared between data and instructions. The level 1 data TLB now stores 64 entries for small pages (4K) or 32 for large pages (2M/4M), while the level 1 instruction TLB stores 128 entries for small pages (the same as with Core 2) and seven for large pages. The second level is a unified cache that can store up to 512 entries and operates only with small pages. The purpose of this improvement is to increase the performance of applications that use large sets of data. As with the introduction of two-level branch predictors, this is further evidence of the architecture’s server orientation.

如果能找到全新的SNB架构的数据,再更新一次吧
intel_iclifort 2011-04-28
  • 打赏
  • 举报
回复
这个和特定的CPU内部架构相关,可能需要查询处理器相关的资料。

VTune只能收集到TLB命中/不命中的百分比
YTerrenceLau 2011-04-28
  • 打赏
  • 举报
回复
貌似只有读出ID然后自己做个表格,自己解释了。
wuye1986 2011-04-27
  • 打赏
  • 举报
回复
谢谢Intel达人的解答

567

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧