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

VTune

Akhilesh_Naidu
Beginner
968 Views

Hello team,

Want to know few things about Hotspot analysis, Number of threads and Sampling interval!

 

In Hotspot analysis Main function is the first function that will call rest of the functions, then why its not there in the top position of hotspot functions?

 

I am using less number of threads, but the value for number of threads in hotspot and threading analysis is quite high. So please tell me what does this number of threads represents and have noticed that number of threads value changes sometimes.

 

What is impact of sampling interval? What should be the ideal value for it.

 

Thanks and Regards

Akhilesh

0 Kudos
7 Replies
AthiraM_Intel
Moderator
913 Views

Hi,


Thanks for reaching out to us.

We are looking into this, will get back to you soon.


Thanks


0 Kudos
AthiraM_Intel
Moderator
884 Views

Hi,


1. Hotspots analysis is used to identify sections of code that get a lot of execution time (hotspots). VTune Profiler displays a list of functions in your application ordered by the amount of time spent in each function. VTune follows bottom up approach in displaying summary. It wouldn't be useful for anybody if all hotspots are main function.

For more details, refer the below link:

 https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/analyze-performance/algorithm-group/basic-hotspots-analysis.html

  

2. Threading analysis is used to identify how efficiently an application uses available processor compute cores and explore inefficiencies in threading runtime usage or contention on threading synchronization that makes threads waiting and prevents effective processor utilization. Thread count change might be due to kernel and system process.

Could you please let us know whether you are profiling an app or systemwide profiling?

Please refer the below link for more information:

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/analyze-performance/parallelism-analysis-group/threading-analysis/threading-efficiency-view.html


3. The sampling interval is used to calculate the target number of samples and the Sample After value (SAV). Increasing the sampling interval may be useful for profiles with long durations or profiles that create large results. To determine an appropriate sampling interval, consider the duration of the collection, the speed of your processors, and the amount of software activity. For instance, if the duration of sampling time is more than 10 minutes, consider increasing the sampling interval to 50 milliseconds. 

  

 For more details, please refer the below link:

  https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/analyze-performance/custom-analysis/custom-analysis-options/sampling-interval.html


If you have any further issue, please let us know.


Thanks.


0 Kudos
Akhilesh_Naidu
Beginner
874 Views

Hello Team,

 

I am profiling an APP in which the number of thread counts changes whenever I change the sampling interval. So what is the reason behind this and what exactly Number of Thread represents?

 

Also Suppose a Function F1 takes X seconds and another Function F2 calls F1, The rest of the code for F2 takes Y seconds. So what will be the total time reported in hotspot for Function F2 - ?

1. X + Y seconds or

2. Y seconds

Thanks, 

Akhilesh

 

 

0 Kudos
AthiraM_Intel
Moderator
839 Views

Hi, 


Regarding your second query, 

The Bottom-up window shows only Self time. The Top-down Tree window and Source/Assembly window show Self time and Total time.

Self time is the time spent in a particular program unit. Total time is the accumulated time that a program unit incurs. 


Please refer the below link for detailed information:

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/reference/cpu-metrics-reference/self-time-and-total-time.html


Regarding the number of thread counts, we are checking from our end . We will get back to you soon with an update.


Thanks.


0 Kudos
AthiraM_Intel
Moderator
812 Views

Hi,


Regarding the thread count, we are not able to reproduce the issue. Could you please share the sample reproducer and the sampling intervals you used, so that we can try out the same from our end.


Thanks.


0 Kudos
AthiraM_Intel
Moderator
777 Views

Hi,


We haven't heard back from you. Could you please give us an update?


Thanks.


0 Kudos
AthiraM_Intel
Moderator
734 Views

Hi,


We have not heard back from you, so we will close this inquiry now. If you need further assistance, please post a new question.


Thanks.


0 Kudos
Reply