第18章到第20章讲解了架构性和非架构性的性能事件,从intel P6开始一直到今天的Core i7。问题在于许多内容都找不到详细,例如PEBS。PEBS从Pentium4到如今的Haswell一直在发生变化(详见linux/perf.h),但是却不知道PEBS到底能准确到什么程度。从试验的结果看,在intel Core i7 4770K上PEBS锁给出的PC和地址仍然不是准确的,用的是以下事件:MEM_LOAD_UOPS_L3_HIT_RETIRED:XSNP_HITM:ANY_THREAD
[监视所有运行在同一核心(包括HyperThreading™和其他SMT技术)的以下事件:内存指令击中在其他核心的L3缓存,并且击中时的状态为“改动”]
linux syntax:
sudo perf record -e r5304d2 ./program
sudo perf script -f ip
另一个问题是虽然给出了可供选择的性能事件,但是只有事件名字而没有具体事件描述。
第18章到第20章
theOtherWC
对
Intel® 64 and IA-32 Architectures Software Developer's Manual
的书评
发表时间:2014-08-24 14:08:12
《Intel® 64 and IA-32 Architectures Software Developer's Manual》热门书评
书名: Intel® 64 and IA-32 Architectures Software Developer's Manual
作者: Intel
出版社: Intel Corporation
副标题: Volume 1-3
出版年: 2006
装帧: Paperback
ISBN: 9781555122720