cancel
Showing results for 
Search instead for 
Did you mean: 

Server Gurus Discussions

jacv2
Adept I

AMD uProf missing CPU Profile "Assess Performance" option

I asked this question in SO.

I'm trying to get an Event-Based profiling session using AMDuProf (v3.5.677) but my setup is missing the "Assess Performance" option and only shows "Timed-Based Sampling". Any insight on this would be appreciated. You can see screenshots in SO.

 

Note: I also asked here in the wrong board.

0 Likes
17 Replies

Are you using uProf in some virtualization environment?  You need to enable the performance counters in your settings.

Can you share the output of following command?

  • AMDuProfCLI info --system

 

0 Likes

I'm running directly on metal. 

Here is a screen cap of the output of `AMDuProfCLI info --system` 

cmd_out.PNG

I see there that my '[PERF Features Availability]' has all 'No'. Am I missing features or do I need to enable something ? 

0 Likes

 

I'm running on metal. I see in my output that the PERF section is all set to 'No' does that mean my 5900x does not support the performance counters ?

amd.PNG

0 Likes

Can you please try disabling Hypervisor?

0 Likes

I have the same issue. In the beginning I don't have HyperV enabled, then based on https://community.amd.com/t5/server-gurus-discussions/amd-uprof-not-showing-performance-counters/m-p... I have enabled Hyper-V. But still without success.

This is the current output from mine AMDuProfCLI info --system:

[OS Info]
OS Details : Win1021H1-64

[CPU Info]
AMD Cpu : Yes
Family : 0x19
Model : 0x21
Stepping : 0x0
Local APIC : Yes
Socket Count : 1
SMT Enabled : Yes
Threads per Core : 2
Threads per CCX : 12
Threads per Package : 24
Total number of Threads : 24

[PERF Features Availability]
Core PMC : No
L3 PMC : No
DF PMC : No
PERF TS : No

[IBS Features Availability]
IBS : No

[RAPL/CEF Features Availability]
RAPL : No
APERF & MPERF : Yes
Read Only APERF & MPERF : Yes
IRPERF : No
HW P-State Control : Yes

[Hypervisor Info]
Hypervisor Enabled : Yes
Hypervisor Supported : Yes
Hypervisor Vendor : Microsoft Hyper-V
Root/Host Partition : Yes

0 Likes

By default, PMC events will not be available on the guest OS. You need to run following command in Power-Shell on host OS for PMC's to be visible in Guest OS:
Set-VMProcessor MyVMName -Perfmon @("pmu")

Refer :  https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/performance-monitoring...

0 Likes

thx for your reply!

But I am running on my own PC, there is no guest OS, so what should I use for 'MyVMName' for that command? or did I missunderstand sth?

0 Likes

Hello QuagFeng,

Can you please try disabling hypervisor once ?

0 Likes

Hi, disable Hyper-V doesn't work.

0 Likes

can you please share the output of msinfo32 command?

0 Likes

Hi, this is the output of msinfo32

quagfeng_1-1658072008097.png

 

 

0 Likes

Looks like HyperVisor is not disabled properly.  You need to reboot the system after disabling the Hypervisor.

Your msinfo32 and AMDuProfCLI.exe info --system output should look something like this:

 

Part of the uProf cmd output:

santosh_zanjurne_1-1658481872963.png

 

 

Part of msinfo32 cmd:

santosh_zanjurne_2-1658481952321.png

 

Thanks,

Santosh

0 Likes

Hi Santosh,

I have disabled Hyper-V, in that screenshot, I just re-enabled Hyper-V again. But I find one thing strange:

AMDuProfCLI might not be able to detect disabled Hyper-V. Even powershell shows (I already restarted my pc):

quagfeng_0-1658488816394.png

AMDuProfCLI.exe info --system still shows Hyper-V is enabled:

quagfeng_1-1658488864616.png

Also I highly doubt enable/disable Hyper-V will solve this problem. Because previously I had windows home version and it doesn't support Hyper-V, and I already had the problem with uProf. After seeing in this forum someone sugguest that Hyper-V is needed to let uProf support the hw perf counters, I upgraded my windows to windows pro and then enabled Hyper-V, but this doesn't solve the problem. 

0 Likes
quagfeng
Adept I

With the help from Santosh, it turns out that turns off SVM in bios can solve this problem. Thx you very much, Santosh!

But as a side node, it would be great that such performance counters don't need to turn off SVM as vTune doesn't need to turn of SVM to be able to collect hw counters and SVM might be quite useful for e.g. WSL2.

0 Likes

But as a side node, it would be great that such performance counters don't need to turn off SVM as vTune doesn't need to turn of SVM to be able to collect hw counters and SVM might be quite useful for e.g. WSL2.

0 Likes

See if running `bcdedit /set hypervisorlaunchtype off` on an elevated command line then rebooting allows uProf to work with SVM enabled.

0 Likes