oprofile 实践
来源:互联网 发布:汉口北淘宝商学院 编辑:程序博客网 时间:2024/06/08 20:01
背景
oprofile工具是一款Linux下性能profile的工具。
版本
oprofile 0.9.6 -- sle 11 sp1
oprofile 0.9.9 -- ubuntu 14.04
介绍
不同的版本,事件名称是不同的。比如0.9.6所有事件均为大写字母(如CPU_CLK_UNHALTED),而0.9.9均为小写字母(如cpl_cycles)。
相同的版本,cpu不同,事件也是不同的。我分别在2台cpu型号不同的服务器上安装了0.9.6版本的oprofile。
两台服务器的oprofile事件,一台较多,一台较少。
使用
oprofile 0.9.6
为了清理数据,避免每次都得到老的数据,经过实践,暂时只有使用如下几个步骤:
1144 opcontrol --deinit
1145 modprobe oprofile timer=1
1146 dmesg | grep opr
1147 opcontrol --start --vmlinux=/root/llc/vmlinux-2.6.32.12-0.7-default.debug
1148 opcontrol --stop
1149 opcontrol --dump
1150 opreport
1151 opreport -l
1145 modprobe oprofile timer=1
1146 dmesg | grep opr
1147 opcontrol --start --vmlinux=/root/llc/vmlinux-2.6.32.12-0.7-default.debug
1148 opcontrol --stop
1149 opcontrol --dump
1150 opreport
1151 opreport -l
0 0
- oprofile 实践
- oprofile
- oprofile
- Oprofile
- oprofile
- oprofile
- OProfile
- oProfile
- oprofile
- oprofile
- OProfile
- OProfile manual
- Gprof & OProfile
- Oprofile使用指南
- 安装oprofile
- oprofile实战
- Oprofile 常见问题
- Linux oprofile
- 跟我一起了解Lua语言中的_index,newindex,rawget和rawset
- DLL之多线程
- HDU3533Escape(BFS )
- jvm学习笔记
- Centos6.5安装PHP运行环境,LNPR安装说明
- oprofile 实践
- 最小费用最大流;HDU1533
- java中的基本数据类型一定存储在栈中的吗?
- openstack keypair实践
- 南邮 OJ 1027 Quicksum
- 一些设计上的基本常识
- 排序
- Centos6.5 x86_64下 静默安装Oracle 11g R2
- 南邮 OJ 1028 Digital Roots