Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
Important Update: Community Platform Migration​. Learn more​>
5340 Discussions

Profiling workloads within toil

kaplannp
Novice
2,399 Views

Hello,

 

I'd like to use vtune hotspots to profile an application from the command line. The application uses toil internally , and I'd like to get profiling results for all the jobs within the toil pipeline. Is this possible using vtune? When I try the obvious `vtune -collect hotspots ./myapp` the application hangs.

Any leads or pointers to documentation would be greatly appreciated!

 

Thanks,

Noah

Labels (1)
0 Kudos
1 Solution
yuzhang3_intel
Moderator
2,366 Views

Try using hardware event-based sampling mode instead.

vtune -collect hotspots -knob sampling-mode=hw ./myapp

View solution in original post

0 Kudos
4 Replies
yuzhang3_intel
Moderator
2,367 Views

Try using hardware event-based sampling mode instead.

vtune -collect hotspots -knob sampling-mode=hw ./myapp

0 Kudos
kaplannp
Novice
2,307 Views

Thanks for the help!

This works for some inputs to my application, but on other inputs it freezes and produces
"kernel:[ 1948.765550] watchdog: BUG: soft lockup - CPU#30 stuck for 52s! [_toil_worker:8611]"

 

-----------EDIT---------------

I've fixed the issue. It was related to the -knob enable-stack-collection=true flag that I was passing to vtune, which caused the machine to run out of memory.

Accepting the answer as this solved my first question.

yuzhang3_intel
Moderator
2,271 Views

You can specify the the option '-data-limit' to limit the amount of raw data (in MB) collection.

vtune -collect hotspots -data-limit=200 myApp

 

For details, please refer to the User Guide below:

https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-2/data-limit.html

 

 

0 Kudos
Reply