Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4992 Discussions

sampling activity split into multiple runs but only the first run counts clockticks

sparc1998
Beginner
624 Views
I have a sampling activity for which I'm trying to estimate several ratios. When I ran the activity, vtune split it into multiple runs (7 in all). It appears that CPU_CLK_UNHALTED.CORE is only sampled for the first run even though ratios computed from other runs require CPU_CLK_UNHALTED.CORE in the divsor. Does that make sense? What happens if two runs take a different number of clockticks, wouldn't that skew the ratio?

Regards,
Sparc
0 Kudos
2 Replies
TimP
Honored Contributor III
624 Views
The assumption is that the multiple runs are directly comparable, which certainly breaks down when there are competing processes running on the system. When there aren't many samples in a region of interest (most samples occurring elsewhere), there can be quite a bit of non-repeatibility entering into the comparison of the multiple runs. So, it may be helpful to set up runs to increase the time spent in a region of interest and reduce the magnitude of the problem you appear to be pointing out. You may get more insight, as you imply, by setting up individual runs which count just clock ticks and few enough other events to fit in a single run.
0 Kudos
sparc1998
Beginner
624 Views
Quoting - tim18
The assumption is that the multiple runs are directly comparable, which certainly breaks down when there are competing processes running on the system. When there aren't many samples in a region of interest (most samples occurring elsewhere), there can be quite a bit of non-repeatibility entering into the comparison of the multiple runs. So, it may be helpful to set up runs to increase the time spent in a region of interest and reduce the magnitude of the problem you appear to be pointing out. You may get more insight, as you imply, by setting up individual runs which count just clock ticks and few enough other events to fit in a single run.

Thanks Tim. This is along the lines of what I was thinking, but as a new user, I wanted to make sure I wasn't mis-interpreting something.
0 Kudos
Reply