- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I was wondering how vtune deal with kthreads? If I generate a vtune profiling report(like group-by module) on program using kthreads, will the part of kthread be categorized as the original application, as part of the kernel, or other modules?
(a little bit more of background: I am currently using vtune to profile a SGX program, and the profiling result shows that isgx module only occupy 1% of the runtime. I noticed that sgx driver use kthread to deal with paging, so I was wondering if this will cause some of the runtime which actually belongs to sgx driver categorized as kernel?)
Thanks so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello jing!
For successful profiling kernel modules several prerequisites shall be done:
1. Enable kernel modules resolution
2. Download and install available debug kernel versions
3. Build the Linux kernel with debug information
Please read details about these steps in the article from the VTune Profiler User Guide: https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/set-up-analysis-target/linux-targets/enabling-linux-kernel-analysis.html#enabling-linux-kernel-analysis_GUID-1E04AF16-30B8-4FAE-B551-EEABEB45ADE7
After the steps are done you will be able to profile Linux kernel and other system modules using VTune Profiler.
Hope this helps,
Dmitry
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello jing!
For successful profiling kernel modules several prerequisites shall be done:
1. Enable kernel modules resolution
2. Download and install available debug kernel versions
3. Build the Linux kernel with debug information
Please read details about these steps in the article from the VTune Profiler User Guide: https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/set-up-analysis-target/linux-targets/enabling-linux-kernel-analysis.html#enabling-linux-kernel-analysis_GUID-1E04AF16-30B8-4FAE-B551-EEABEB45ADE7
After the steps are done you will be able to profile Linux kernel and other system modules using VTune Profiler.
Hope this helps,
Dmitry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello jing!
I hope your issue is resolved. Could you please confirm whether we can close this thread?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
CPU samples related to kthreads should be associated with vmlinux module. If you do hotspots collection with stacks based on HW sampling you can use e.g. Caller/Callee view to see total time for sgx functions and the functions they call in the kernel.
Thanks & Regards, Dmitry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello jing!
I hope your issue is resolved. Could you please confirm whether we can close this thread?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello jing!
We won't be monitoring this thread anymore. Kindly raise a new thread if you need further assistance.
Thanks.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page