CPU拓扑结构的调查
2014-05-23 12:26
113 查看
原作者:http://www.verydemo.com/demo_c167_i201201.html
L1,L2 cache的大小等信息。
Linux下的/proc/cpuinfo提供了相应的信息,但是比较不全面。 /sys/devices/system/cpu/也提供了topology结构但是比较难解读。
很多时候我们需要更专业的工具了。intel提供了这样的救助。参见: http://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration/
下载下来编译执行就好。
[admin@my174 cpu-topology]$ ./cpu_topology64.out
Advisory to Users on system topology enumeration
This utility is for demonstration purpose only. It assumes the hardware topology
configuration within a coherent domain does not change during the life of an OS
session. If an OS support advanced features that can change hardware topology
configurations, more sophisticated adaptation may be necessary to account for
the hardware configuration change that might have added and reduced the number
of logical processors being managed by the OS.
User should also`be aware that the system topology enumeration algorithm is
based on the assumption that CPUID instruction will return raw data reflecting
the native hardware configuration. When an application runs inside a virtual
machine hosted by a Virtu…………………………………………………………………………
CPU拓扑结构的调查
在做多核程序的时候(比如Erlang程序),我们需要了解cpu的拓扑结构, 了解logic CPU和物理的CPU的映射关系,以及了解CPU的内部的硬件参数,比如说L1,L2 cache的大小等信息。
Linux下的/proc/cpuinfo提供了相应的信息,但是比较不全面。 /sys/devices/system/cpu/也提供了topology结构但是比较难解读。
很多时候我们需要更专业的工具了。intel提供了这样的救助。参见: http://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration/
下载下来编译执行就好。
[admin@my174 cpu-topology]$ ./cpu_topology64.out
Advisory to Users on system topology enumeration
This utility is for demonstration purpose only. It assumes the hardware topology
configuration within a coherent domain does not change during the life of an OS
session. If an OS support advanced features that can change hardware topology
configurations, more sophisticated adaptation may be necessary to account for
the hardware configuration change that might have added and reduced the number
of logical processors being managed by the OS.
User should also`be aware that the system topology enumeration algorithm is
based on the assumption that CPUID instruction will return raw data reflecting
the native hardware configuration. When an application runs inside a virtual
machine hosted by a Virtu…………………………………………………………………………
相关文章推荐
- CPU拓扑结构的调查
- CPU拓扑结构之非一致性内存访问
- select 函数实现 三种拓扑结构 n个客户端的异步通信 (完全图+线性链表+无环图)
- 判断tl树中是否有与t2树拓扑结构完全相同的子树
- Intel CPU 结构及编程介绍
- 网络拓扑结构设计(三)
- 计算机体系结构原理——数据操控(CPU工作原理)
- 读取CPU卡目录结构—层次遍历代码
- 2.1 8086CPU的内部结构
- 数据结构实验之图论十:判断给定图是否存在合法拓扑序列
- [牛客]拓扑结构相同子树练习题
- Java Performance - 如何调查解决 CPU 问题
- 主从复制的常用拓扑结构
- 基于HTML5和WebGL的3D网络拓扑结构图
- 基于HTML5和WebGL的3D网络拓扑结构图
- MySQL主从复制的常用拓扑结构
- OJ2140图结构练习——判断给定图是否存在合法拓扑序列
- 算法编程题-判断一颗树中是否有与另一棵树拓扑结构完全相同的子树
- DDR3之PCB拓扑结构与DDR布线要求