Hi,

On Mon, Dec 1, 2014 at 6:24 AM, Sun, Yongjie <yongjie....@intel.com> wrote:
> Hi, all
>    I use the perfmon2 to count events
> “UNHALTED_CORE_CYCLES,UNHALTED_REFERENCE_CYCLES,CPU_CLK_UNHALTED:THREAD_P,CPU_CLK_UNHALTED:REF_P”
> and got

which CPU is this running on?
How long does your test run?
Are you running in system-wide or per-process mode?
Need more context to answer your question.

> CPU0: UNHALTED_CORE_CYCLES      5538707
> CPU0: UNHALTED_REFERENCE_CYCLES 3
> CPU0: CPU_CLK_UNHALTED:THREAD_P 5641229
> CPU0: CPU_CLK_UNHALTED:REF_P    419607
> CPU0: UNHALTED_CORE_CYCLES      11661876
> CPU0: UNHALTED_REFERENCE_CYCLES 3
> CPU0: CPU_CLK_UNHALTED:THREAD_P 11813664
> CPU0: CPU_CLK_UNHALTED:REF_P    911248
> CPU0: UNHALTED_CORE_CYCLES      15682069
> CPU0: UNHALTED_REFERENCE_CYCLES 3
> CPU0: CPU_CLK_UNHALTED:THREAD_P 15869779
> CPU0: CPU_CLK_UNHALTED:REF_P    1246315
>
> Two questions: 1. why UNHALTED_REFERENCE_CYCLES is 3?  Too small
>              2. why  CPU0: CPU_CLK_UNHALTED:REF_P is much smaller than
> CPU_CLK_UNHALTED:THREAD_P? this do not make sence!
>
> BTW: I count this for I want to count the CPU Frequency from Intel’s DOC:
> https://software.intel.com/en-us/articles/measuring-the-average-unhalted-frequency
> Average frequency =
> TSC_frequency * (CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF)
>
> So can anybody help on this question?
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> perfmon2-devel mailing list
> perfmon2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to