-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PCM Assertion Failed #717
Comments
running on a hybrid CPU with disabled E-cores on VMWare Windows host in a Linux VM is a very interesting but rather rare combination. We can try to debug it and find out if this setup can be supported by PCM but we your help. Could you please provide the output of "lscpu" and "cpuid --raw" commands from the VM? |
Thanks for your attention. The running environment is designed for education purpose. Maybe I didn't describe the environment clearly, my physical machine runs windows 11 operating system, and virtual machine runs ubuntu 20.04 operating system in VMware Workstation Pro 16. I have assigned 2 cpu core and 4GB RAM to Virtual machine, and each core has 2 threads.The output of "lscpu" and "cpuid --raw" commands are as follows.Looking forward to your reply. "lscpu" output: "cpuid --raw" output: |
Hi, thanks for providing the data. I noticed that the topology exposed to the VM does not match the host. The host machine has single socket but the VM reports "Socket(s): 2". As the next step, could you please change the exposed topology to have single socket inside VM to match the host? Does pcm then pcm stop on the assertion in the updated config? |
Thank you for your advice. I tried to change the configuration of VMware workstation pro, and configure VM's CPU to 1 processor with 8 core per processor which is the same as the physical machine. From the information of "lscpu" command in VM, the Socket number of CPU is set to 1 but it still has assertion failed problem. Besides, I notice that there are only 1 thread for each core in VM, and it seems I can't change this setting in VMware workstation pro. I don't know whether this may lead to assertation failure or not. Detail information of command "lscpu" and "cpuid --raw" are as follows. root@myuser-virtual-machine:/home/myuser/Desktop/pcm/build/bin# lscpu root@myuser-virtual-machine:/home/myuser/Desktop/pcm/build/bin# cpuid --raw |
When I run ./pcm command on a Ubuntu 20.04 virtual machine in VMware workstation 16 pro , I met the following error. I have already turn on the virtual CPU performance counter setting of VMware. I want to know whether pcm tool can run in vmware environment, and if can, how to fix this problem.
The hardware environment is as follows.:
CPU: Intel i7 12700k, which turns all E core off.
Menory :64GB
Operating System :Windows 11 Professional edition
Intel(r) Performance Counter Monitor ( $$Format:%ci ID=%h$)
Detected a hypervisor/virtualization technology. Some metrics might not be available due to configuration or availability of virtual hardware features.
===== Processor information =====
Linux arch_perfmon flag : yes
Hybrid processor : no
IBRS and IBPB supported : yes
STIBP supported : yes
Spec arch caps supported : yes
Max CPUID level : 32
CPU model number : 151
pcm: /home/myuser/Desktop/pcm/src/types.h:1443: pcm::uint32 pcm::build_bit_ui(pcm::uint32, pcm::uint32): Assertion `end <= 31' failed.
DEBUG: caught signal to interrupt (Aborted).
The text was updated successfully, but these errors were encountered: