> 1. Does the perf tool understand CLWB instructions?
>
> - I am using clwb to write back dirty data to pmem. I expected perf to
> show this as the hottest instruction, and commenting out clwb buys back
> all
> of the slowdown of the applications. But "perf" doesn't show clwb as a
> hot
> instruction, rather perf shows a "mov" instruction somewhere else in the
>
> code as taking up most of the time.
As far as I can tell, perf does not "understand" any instruction at
all. When sampling, perf-record just periodically records the current
instruction pointer (and attempts to unwind and record the call stack
if you specify -g option). Later, upon analysis, it probably just uses
external libs such as binutils/elfutils to decode the values it
recorded.
> 2. What perf stats should I be looking at, to debug performance of
> application working with pmem in DAX mode?
I'd be happy to know that. Are there any hardware counters events for
Optane Memory?
Regards,
Jan
2019-10-16 20:52 GMT+02:00, MOHIT VERMA <
vmoh...@gmail.com>:
> I am looking at the perf report of an application that is using pmem in DAX
>
> mode. I have a couple of questions (I don't understand perf fully, so
> excuse me if these are naive questions):
>
> 1. Does the perf tool understand CLWB instructions?
>
> - I am using clwb to write back dirty data to pmem. I expected perf to
> show this as the hottest instruction, and commenting out clwb buys back
> all
> of the slowdown of the applications. But "perf" doesn't show clwb as a
> hot
> instruction, rather perf shows a "mov" instruction somewhere else in the
>
> code as taking up most of the time.
>
>
> 2. What perf stats should I be looking at, to debug performance of
> application working with pmem in DAX mode?
>
> Thanks!
> Mohit
>
> --
> You received this message because you are subscribed to the Google Groups
> "pmem" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pmem+uns...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/pmem/3dcdd9c1-f8ad-448d-a9c3-d8268c08f102%40googlegroups.com.
>