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

Does vtune work on isolated cpu?

tedqian
Beginner
1,388 Views

Can anyone please share if vtune can inspect processes on an isolated CPU?  It seems vtune cannot get information out of a process if it pins to the isolated CPU(100% used).

OS:Centos 7.9

VTune Profiler 2022.3.0(build 624050) 

0 Kudos
10 Replies
JaideepK_Intel
Moderator
1,355 Views

Hi,

 

Thank you for posting in Intel communities.

 

To understand your issue better please answer the below questions.

 

  • Are you running Vtune as a sudo/root user?
  • Are you trying to attach to the process (i.e., by using the target pid flag)? If yes, while running Vtune, does it hang or throw any errors? Please attach valid screenshots.
  • Are you facing the issue with default samples (matrix multiplication) or specific to one sample? If it was specific to one sample please attach a sample reproducer(exact replica of the original sample) as well.
  • We can see you are using an older version of Vtune could you please upgrade also the os which you are using is also deprecated with the latest version of Vtune.
  • Please run the below command and attach the log file as well.

sh <oneapi_install_directory>/vtune/latest/bin64/vtune-self-checker.sh

(eg: sh /opt/intel/oneapi/vtune/latest/bin64/vtune-self-checker.sh)

 

Thanks,

Jaideep

 

 

0 Kudos
tedqian
Beginner
1,234 Views

Hi,

Is there any progress on the problem?

 

Thanks,

Tedqian

0 Kudos
tedqian
Beginner
1,283 Views

Hi,

 Sorry for the late reply.

  • Are you running Vtune as a sudo/root user?

       //yes, root

  • Are you trying to attach to the process (i.e., by using the target pid flag)? If yes, while running Vtune, does it hang or throw any errors? Please attach valid screenshots.

      //see the vtune_output.txt

  • Are you facing the issue with default samples (matrix multiplication) or specific to one sample? If it was specific to one sample please attach a sample reproducer(exact replica of the original sample) as well.

       //no

  • We can see you are using an older version of Vtune could you please upgrade also the os which you are using is also deprecated with the latest version of Vtune.

       //i will try 

  • Please run the below command and attach the log file as well.

       //see log.txt

 

thanks

0 Kudos
JaideepK_Intel
Moderator
1,227 Views

Hi,

 


Yes, Vtune works on an Isolated CPU.


Since you are using a sample that runs in less amount of time you are facing this issue. From the above log, we can see the elapsed time is 0.00 seconds because of that there is no data collected. Can you try with a sample that runs for at least 30 seconds?

 

Please try to run Vtune as root/sudo user

vtune -collect performance-snapshot <path to that binary/sample>

 

Thanks,

Jaideep

0 Kudos
tedqian
Beginner
1,206 Views

Hi,

The vtune_out.log show that elapsed time is 0.00 seconds, but the command i run with root is: 

"vtune -collect performance-snapshot -target-pid=20834 -d 240 -result-dir ./", which will collect 240 seconds performance data.

So maybe vtune doesnt work on isolated cpu with is always 100%?

Thanks,

tedqian

0 Kudos
JaideepK_Intel
Moderator
1,164 Views

Hi,


Vtune works on isolated CPUs as well, Instead of attaching the process(using target pid) can you try to run Vtune with the below command and share the results?


vtune -collect performance-snapshot -result-dir ./ <path_to the_binary/executable>


From the self-checker log we can see all the analysis are working fine without any issues, we assume the sample which you are running is too small.


To understand your issue better attach your sample reproducer, so we can replicate the same issue from our end.


Thanks,

Jaideep





0 Kudos
tedqian
Beginner
1,122 Views

Hi,

I run the below  command  with 10 minutes: 

vtune -collect performance-snapshot -result-dir ./ <path_to the_binary/executable>

Then i want to stop vtune with the command but it fail.

[root@168-61-53-2 vtunetest]# vtune -command stop -r ./
^Cvtune: Error: Cannot handle the given command due to an internal error.
vtune: Internal Error

So i use kill command to end the vtune.The attachment is result.

Thanks,

Tedqian

 

0 Kudos
JaideepK_Intel
Moderator
1,090 Views

Hi,


We are unable to reproduce your issue from our end and everything works fine for us, inorder to understand better could you share your sample reproducer(exact replica of your sample)?


We can see your self-checker log is working fine. So we assume maybe bcoz of the sample you are using.


Thanks,

Jaideep



0 Kudos
JaideepK_Intel
Moderator
1,050 Views

Hi,


Could you please share the details mentioned above?


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Moderator
1,007 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks,

Jaideep


0 Kudos
Reply