Chinaunix首页 | 论坛 | 博客
  • 博客访问: 400088
  • 博文数量: 103
  • 博客积分: 3073
  • 博客等级: 中校
  • 技术积分: 1078
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-23 15:04
文章分类

全部博文(103)

文章存档

2012年(13)

2011年(76)

2010年(14)

分类: LINUX

2011-06-29 21:32:52

CPU_CLK_UNHALTED.THREAD
Description:
 Counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The thread frequency may change from time to time due to thermal or power throttling.

cpu_clk_unhalted.rdtsc
 This event counts reference clock cycles while the clock signal on the core is running. The reference clock operates at a fixed frequency, irrespective of core frequency changes due to performance state transitions. Processors may implement this behavior differently.

我自己在nehalem 上测了一下,
thread 会有变化

rdtsc 很稳定,但是频率比thread 低 2倍左右。
阅读(1008) | 评论(0) | 转发(0) |
0

上一篇:grep 应用实例

下一篇:assembly 学习网

给主人留下些什么吧!~~