Hi Andi, Coming back from winter break, looking at the perf user land tool (in the kernel sources) I am still confuse about this discussion.
The perf mem record tool use the MEM_INST_RETIRED.LATENCY_ABOVE_THRESHOLD which I guess belongs to the memory PEBS events you mentionned (isn't it ?) is reporting information about the sources of the events. it seems that for this purpose the IP information is used, does it mean that what perf mem reports can be wrong because of the random IP selection mechanism you mentionned ? Thanks for your help and sorry for all these questions, but I can't find an answer elswhere than on this list. Manu 2013/12/25 Manuel Selva <selva.man...@gmail.com>: > > On 12/24/2013 10:27 PM, Andi Kleen wrote: >>> >>> I checked what can be measured with the offcore facility. I can ask >>> to count remote memory accesses, but now I am not sure PEBS is >>> enable for these events. If the answer is no, I can't accurately >>> identify remote memory accesses with offcore events ? As a >>> consequence I am wondering if there is a way to do such thing ? >> >> >> The OFFCORE events are not PEBS enabled. > > > Ok, you confirm what I read in the Intel SDM. > > > However the memory PEBS >> >> events report the same information (with some limitations) in >> the PEBS record (and perf reports this information) > > By memory PEBS events, do you mean the following events ? > > MEM_LOAD_RETIRED.L1D_MISS > MEM_LOAD_RETIRED.L1D_LINE_MISS > MEM_LOAD_RETIRED.L2_MISS > MEM_LOAD_RETIRED.L2_LINE_MISS > MEM_LOAD_RETIRED.DTLB_MISS > > I can't profile memory accesses with these events, isn't it ? What do you > mean by perf reports this infomation, which perf tool ? > > >> >> In general you cannot accurately profile all memory accesses. > > > Does it means that the perf mem record tool is reporting wrong values > concerning the source of the event ? (I checked that this tool use the load > latency event with PEBS and you said that the IP reported by this uncore > event is not always the correct one ?) > > Thanks, > > ---- > Manu -- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html