linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Understanding perf mem -t load results
@ 2013-12-12 14:06 Manuel Selva
  2013-12-15 18:27 ` Manuel Selva
  2013-12-15 21:18 ` Andi Kleen
  0 siblings, 2 replies; 18+ messages in thread
From: Manuel Selva @ 2013-12-12 14:06 UTC (permalink / raw)
  To: linux-perf-users

Hi all,

I am trying to understand the output of the perf mem tool on my workstation with two intel Xeon X5650.

I recorded a perf.data file with memory load sampling (write sampling is not availble for these processors) as following (in the root directory of a Linux kernel source tree):

perf mem -t load rec -c 1 make -j18

Then I am reporting the results with

perf mem rep --sort=mem

 97.00%      25519343  L1 hit
  1.31%         43687  L3 hit
  1.15%         37253  LFB hit
  0.32%          3156  Remote Cache (1 hop) hit
  0.14%         38579  L3 miss
  0.05%          6309  L2 hit
  0.03%           231  Remote RAM (1 hop) hit
  0.00%             8  Local RAM hit
  0.00%             2  Uncached hit

As you can see, 97% of the loads (I am sampling all loads with -c 1: is it true ?) hit the L1 cache. My first question is about this high L1 hit ration and the small number of RAM requests (231 + 8). Is it realistic to have 97% of L1 hit and only 239 RAM accesses when compiling a Linux kernel ? 

Writing this email and looking again into Intel SDM I am thinking that the L3 misses are what is called "unknown L3 cache miss in SDM". As a consequence the total number of memory accesses would be L3 miss + Remote RAM + Local RAM, is it correct ?

The second question is the Uncached hit: is it the Un-cacheable memory in the SDM ? If yes, I guess it's also a request to RAM.

Finally, it's not very clear for me what Line Fill Buffer (LFB) is exactly and I was not able to find a pointer explaining that. Do you know where I can read information about this ?

Thanks,

------
Manuel

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-01-08 19:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12 14:06 Understanding perf mem -t load results Manuel Selva
2013-12-15 18:27 ` Manuel Selva
2013-12-15 21:18 ` Andi Kleen
2013-12-15 22:03   ` Manuel Selva
2013-12-15 23:45     ` Andi Kleen
2013-12-16  9:13       ` Manuel Selva
2013-12-20  9:38         ` Manuel Selva
2013-12-24  2:18           ` Andi Kleen
2013-12-24  7:10             ` Manuel Selva
2013-12-24  7:28               ` Andi Kleen
2013-12-24  7:42                 ` Manuel Selva
2013-12-24 21:27                   ` Andi Kleen
2013-12-25 10:25                     ` Manuel Selva
2014-01-07 15:06                       ` Manuel Selva
2014-01-07 21:27                         ` Andi Kleen
2014-01-08  8:53                           ` Manuel Selva
2014-01-08  9:50                             ` Manuel Selva
2014-01-08 19:44                             ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).