Performance oprofile-使用ocount/operf-LLC未发布100%

Performance oprofile-使用ocount/operf-LLC未发布100%,performance,caching,oprofile,Performance,Caching,Oprofile,主持人:ubuntu 15.04 oprofile版本:1.1.0 CPU:英特尔至强D-1520 一, 结果是: Event Count % time counted INST_RETIRED 1,847,242,162 100.00 LLC_MISSES 306,616,715 100.00 LLC_REFS 306,

主持人:ubuntu 15.04

oprofile版本:1.1.0

CPU:英特尔至强D-1520

一,

结果是:

Event                Count                    % time counted
INST_RETIRED         1,847,242,162            100.00
LLC_MISSES           306,616,715              100.00
LLC_REFS             306,616,715              100.00
LLC_MISSES
LLC_REFS
是相同的,这意味着缓存丢失率为100%。为什么会发生这种情况?在我看来这是不对的

我使用
operf
进行测试:

sudo operf -e INST_RETIRED:2000003 -e LLC_MISSES:10000 -e LLC_REFS:10000 -e l1d_replacement:2000003 ./test

INST_RETIRED:2...|l1d_replacemen...| LLC_MISSES:10000|   LLC_REFS:10000|
     samples|      %|  samples|      %|  samples|      %|  samples|      %|
------------------------------------------------------------------------
      929 100.000       132 100.000      13083 100.000     13083 100.000 test
    INST_RETIRED:2...|l1d_replacemen...| LLC_MISSES:10000|   LLC_REFS:10000|
      samples|      %|  samples|      %|  samples|      %|  samples|      %|
    ------------------------------------------------------------------------
          927 99.7847       132 100.000      13046 99.5721     13046 99.7172 test
L1D
相对公平。但是,
LLC(最后一级缓存)
缓存未命中率与
ocount
相同,为100%

我还没有找到根本原因,如果你知道为什么或如何解决这个问题,请分享你的经验

谢谢

sudo operf -e INST_RETIRED:2000003 -e LLC_MISSES:10000 -e LLC_REFS:10000 -e l1d_replacement:2000003 ./test

INST_RETIRED:2...|l1d_replacemen...| LLC_MISSES:10000|   LLC_REFS:10000|
     samples|      %|  samples|      %|  samples|      %|  samples|      %|
------------------------------------------------------------------------
      929 100.000       132 100.000      13083 100.000     13083 100.000 test
    INST_RETIRED:2...|l1d_replacemen...| LLC_MISSES:10000|   LLC_REFS:10000|
      samples|      %|  samples|      %|  samples|      %|  samples|      %|
    ------------------------------------------------------------------------
          927 99.7847       132 100.000      13046 99.5721     13046 99.7172 test