Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
4828 Discussions

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

sparc1998
Beginner
158 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
Black Belt
158 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.
sparc1998
Beginner
158 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.
Reply