RH442-6 Linux进程调度(2)
来源:未知 责任编辑:责任编辑 发表时间:2014-03-23 22:30 点击:次
1. Cache信息
[root@www ~]# getconf -a|grep -i cache
LEVEL1_ICACHE_SIZE 32768 #一级cache:32KB
LEVEL1_ICACHE_ASSOC 8
LEVEL1_ICACHE_LINESIZE 64
LEVEL1_DCACHE_SIZE 32768
LEVEL1_DCACHE_ASSOC 8
LEVEL1_DCACHE_LINESIZE 64
LEVEL2_CACHE_SIZE 6291456 #二级cache:6MB
LEVEL2_CACHE_ASSOC 24
LEVEL2_CACHE_LINESIZE 64
LEVEL3_CACHE_SIZE 0
LEVEL3_CACHE_ASSOC 0
LEVEL3_CACHE_LINESIZE 0
LEVEL4_CACHE_SIZE 0
LEVEL4_CACHE_ASSOC 0
#其他查看方法:
[root@www ~]# x86info –c
2. 查询Cache的命中率
[root@www~]#valgrind --tool=cachegrind --I1=32768,8,64 --D1=32768,8,64 --L2=2097152,8,64 cache2
==12949== Cachegrind, a cache and branch-prediction profiler
==12949== Copyright (C) 2002-2009, and GNU GPL'd, by Nicholas Nethercote et al.
==12949== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==12949== Command: cache2
==12949==
Starting
Finished
==12949==
==12949== I refs: 6,188,124,129
==12949== I1 misses: 633
==12949== L2i misses: 629
==12949== I1 miss rate: 0.00%
==12949== L2i miss rate: 0.00%
==12949==
==12949== D refs: 3,937,851,911 (3,375,260,605 rd + 562,591,306 wr)
==12949== D1 misses: 562,500,831 ( 647 rd + 562,500,184 wr)
相关新闻>>
- 发表评论
-
- 最新评论 更多>>