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

analyze programs on a remote Linux machine, but the analysis results are always empty!

yongchengYan
Novice
1,384 Views

yongchengYan_1-1680588962257.png

 

This  is the program I am running on the Linux server, which just prints output every two seconds.

Please see the photos below, which records the entire process of me using the VTune Profiler to analyze. When I started the analysis, it ended quickly, and the analysis results showed as empty. However, at this time, the program running on the remote Linux server was still running.

Step 1:Configure WHERE

yongchengYan_3-1680589777126.png

Step 2: Configure WHAT

yongchengYan_4-1680589850146.png

Step 3: Configure HOW and Start

yongchengYan_5-1680589898198.png

The Result is :

yongchengYan_2-1680589737045.png

---------------------------------------------------------------------------

I have already logged in to the Linux server using the root user via SSH, but when I try to use VTune Profiler to analyze the application remotely, regardless of which analysis mode I choose, a black command prompt window flashes briefly and the data collection ends quickly, resulting in an empty analysis report. However, when I use the VTune Profiler's built-in sample (matrix) to analyze locally, there are no issues.

 

0 Kudos
5 Replies
yongchengYan
Novice
1,363 Views

The Intel vtune profiler version is 2023.0.0

yongchengYan_0-1680593401851.png

 

I'm not sure if it's related to the installation of the driver. Here's the information about the driver:

yongchengYan_1-1680593479383.png

I'm looking forward to your response, thank you very much:)

0 Kudos
JaideepK_Intel
Employee
1,317 Views

Hi,

 

Thank you for posting in Intel Communities.

 

We are able to run your sample successfully without any issues on our machines

We assume the sample you provided is not compute intensive to provide enough data to collect by the Vtune, please look to go through the below attachments.

JaideepK_Intel_0-1680780978476.png


Please provide below details:

  • Windows(host) os: 10/11 .. etc
  • remote Linux distribution : rhel8/7, ubuntu18/20, suse17 ...
  • Linux kernel details (uname -a)
  • both host and remote machine processor details.

 

Possible workarounds:

case 1:

Rename the vtune installation directory path as shown below and redeploy.

JaideepK_Intel_1-1680781077364.png

case 2:

try to run with a different sample (Fibonacci: https://www.geeksforgeeks.org/program-for-nth-fibonacci-number/) choose n>40.

case 3:

Please add "fflush(stdout);" after printf statement in your code.

JaideepK_Intel_2-1680781160757.png

 

Thanks,

Jaideep

 

0 Kudos
yongchengYan
Novice
1,290 Views

Thank you for your answer. I think I have solved the problem. When I run Intel VTune Profiler in non-administrator mode, I cannot collect data for remote Linux programs. When I run Intel VTune Profiler in administrator mode, I can collect data. I don't know if this is a bug, and I suggest that you actually test whether the same problem exists. If running Intel VTune Profiler requires administrator privileges to analyze remote Linux programs, can you consider adding a clear prompt? Thanks again for your answer, and best regards.

0 Kudos
JaideepK_Intel
Employee
1,254 Views

Hi,


I hope you are doing well.


Glad to know that your issue is resolved, As you mentioned above we ran Vtune as a non-administrator and we are getting the below error as the credentials of the target process don't match with the Vtune profiler. Attaching a screenshot for reference.


If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!


Regards,

Jaideep


0 Kudos
JaideepK_Intel
Employee
1,164 Views

Hi,


I hope you are doing well.


Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks,

Jaideep


0 Kudos
Reply