11 2013 档案

如何查看cache信息
摘要:很多时候查不到本机cpu的cache信息。而了解这些信息,对于调优很有帮助查看1级缓存cache大小cat /sys/devices/system/cpu/cpu0/cache/index1/size查看能访问这个1级缓存的cpu编号cat /sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_list查看1级缓存cache line的大小cat /sys/devices/system/cpu/cpu0/cache/index1/coherency_line_size查看1级缓存cache set的数目cat /sys/devices/sys 阅读全文
posted @ 2013-11-13 09:28 a++ 阅读(1926) 评论(0) 推荐(0)
oprofile 安装使用
摘要:ubuntu上要编译安装oprofile。现在版本(0.9.9)的oprofile的编译需要binutil-dev libpopt-devapt-get install binutil-dev libpopt-dev然后./configure make make install安装完以后1.执行opcontrol --init启动加载oprofile模块2.opcontrol --no-vmlinux3.(可选)opcontrol --event=L2_CACHE_MISS:500 查看cache miss率,增加监听事件4.opcontrol --start 启动op5.运行待检测程序(必须 阅读全文
posted @ 2013-11-08 10:32 a++ 阅读(401) 评论(0) 推荐(0)