Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Khaled_M_
Beginner
69 Views

Performance Monitoring - Overflow and Multiple Threads

I have an Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz with with 10 cores -- Each core has to Virua CPUs

I have an application with multiple threads and I want to measure performance counters for each thread separately. I have specific questions about effects of context switching and relation to counters ...

There are two way to measure counters:

  1. Non Sampling : Enabled Counter ---- Whatever Logic--- Read Counters
  2. Overflows: Specify an overflow value and connect the handler --- The handler increment the associated counters

The questions are:

  1. The effects of thread context switching on performance counters.
  2. Following on question one:
    1. Suppose thread A has an overflow counter with a value of 900. The current value of the counter is 700. At this 700 value, the thread left the core (OS Scheduling .. Suppose you have so many threads running). When the other thread comes and uses the same core and virtual processor, what will happen to this value ? Is it lost ?
    2. Does the CPU cause the counter to overflow if a thread is removed from the CPU ? Can I configure that ?
  3. Does executing the overflow handler events get counted ? Suppose an overflow handler has 1000 branches, does these 1000 branches get counted in the branch-instructions counter ?

 

 
0 Kudos
0 Replies
Reply