Closed wjllz closed 1 year ago
help help help me πππ
Did you do the
Enable the code profiling applications in the Processors & Memory tab.
step?
Did you do the
Enable the code profiling applications in the Processors & Memory tab.
step?
I don't think so, I just enable "Set the Preferred virtualization engine in the Advanced tab to Intel VT-x with EPT (it may default to Automatic)". But I don't find " Processors & Memory tab.", where I could find it? thx!
if I don't misunderstand anything.
Configure additional virtualization settings.
On Windows, you can select Virtualize Intel VT-x/EPT or AMD-V/RVI.
On macOS, expand Advanced options. You can then select one or more of the following options:
Enable hypervisor applications in this virtual machine
Enable code profiling applications in this virtual machine
Enable IOMMU in this virtual machine
from vm document. select VT-x/EPT same as Enable code profilling applications. one for Windows, the other one for Macos?
@rocallahan Hey, Would u mind tell me did I miss anything? Thanks!πΆβπ«οΈ
I don't read Chinese but I think it's the second checkbox (right under the VT-x/EPT one).
I assume you've done the obvious things like restart the VM?
What's the output of dmesg|grep PMU
in the guest?
I don't read Chinese but I think it's the second checkbox (right under the VT-x/EPT one).
I assume you've done the obvious things like restart the VM?
What's the output of
dmesg|grep PMU
in the guest?
Hey, I choose these two options:
And this is its output.
i8f@ubuntu:~/Desktop/18_floor/source_code/rr_test$ dmesg|grep PMU
[ 0.515352] Performance Events: AnyThread deprecated, Alderlake Hybrid events, Intel PMU driver.
[ 0.515352] core: cpu_core PMU driver:
[ 0.515352] NMI watchdog: Enabled. Permanently consumes one hw-PMU counter.
[ 6.169566] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
What do you get if you run perf stat /bin/ls
and perf list
in the VM? The output of the latter will be long so you should probably attach it.
What do you get if you run
perf stat /bin/ls
andperf list
in the VM? The output of the latter will be long so you should probably attach it.
hey, this is my output:
i8f@ubuntu:~/Desktop/18_floor/source_code/rr_test$ perf stat /bin/ls
poc poc.c
Performance counter stats for '/bin/ls':
0.94 msec task-clock # 0.098 CPUs utilized
0 context-switches # 0.000 /sec
0 cpu-migrations # 0.000 /sec
97 page-faults # 103.192 K/sec
0 cpu_core/cycles/ # 0.000 /sec
0 cpu_core/instructions/ # 0.000 /sec
0 cpu_core/branches/ # 0.000 /sec
0 cpu_core/branch-misses/ # 0.000 /sec
0.009603849 seconds time elapsed
0.000000000 seconds user
0.013217000 seconds sys
i8f@ubuntu:~/Desktop/18_floor/source_code/rr_test$ perf list
List of pre-defined events (to be used in -e):
branch-instructions OR branches [Hardware event]
branch-misses [Hardware event]
bus-cycles [Hardware event]
cache-misses [Hardware event]
cache-references [Hardware event]
cpu-cycles OR cycles [Hardware event]
instructions [Hardware event]
ref-cycles [Hardware event]
alignment-faults [Software event]
bpf-output [Software event]
cgroup-switches [Software event]
context-switches OR cs [Software event]
cpu-clock [Software event]
cpu-migrations OR migrations [Software event]
dummy [Software event]
emulation-faults [Software event]
major-faults [Software event]
minor-faults [Software event]
page-faults OR faults [Software event]
task-clock [Software event]
duration_time [Tool event]
L1-dcache-load-misses [Hardware cache event]
L1-dcache-loads [Hardware cache event]
L1-dcache-stores [Hardware cache event]
L1-icache-load-misses [Hardware cache event]
branch-load-misses [Hardware cache event]
branch-loads [Hardware cache event]
dTLB-load-misses [Hardware cache event]
dTLB-loads [Hardware cache event]
dTLB-store-misses [Hardware cache event]
dTLB-stores [Hardware cache event]
iTLB-load-misses [Hardware cache event]
branch-instructions OR cpu_core/branch-instructions/ [Kernel PMU event]
branch-misses OR cpu_core/branch-misses/ [Kernel PMU event]
bus-cycles OR cpu_core/bus-cycles/ [Kernel PMU event]
cache-misses OR cpu_core/cache-misses/ [Kernel PMU event]
cache-references OR cpu_core/cache-references/ [Kernel PMU event]
cpu-cycles OR cpu_core/cpu-cycles/ [Kernel PMU event]
instructions OR cpu_core/instructions/ [Kernel PMU event]
mem-loads OR cpu_core/mem-loads/ [Kernel PMU event]
mem-loads-aux OR cpu_core/mem-loads-aux/ [Kernel PMU event]
mem-stores OR cpu_core/mem-stores/ [Kernel PMU event]
ref-cycles OR cpu_core/ref-cycles/ [Kernel PMU event]
slots OR cpu_core/slots/ [Kernel PMU event]
topdown-bad-spec OR cpu_core/topdown-bad-spec/ [Kernel PMU event]
topdown-be-bound OR cpu_core/topdown-be-bound/ [Kernel PMU event]
topdown-br-mispredict OR cpu_core/topdown-br-mispredict/ [Kernel PMU event]
topdown-fe-bound OR cpu_core/topdown-fe-bound/ [Kernel PMU event]
topdown-fetch-lat OR cpu_core/topdown-fetch-lat/ [Kernel PMU event]
topdown-heavy-ops OR cpu_core/topdown-heavy-ops/ [Kernel PMU event]
topdown-mem-bound OR cpu_core/topdown-mem-bound/ [Kernel PMU event]
topdown-retiring OR cpu_core/topdown-retiring/ [Kernel PMU event]
msr/pperf/ [Kernel PMU event]
msr/smi/ [Kernel PMU event]
msr/tsc/ [Kernel PMU event]
rNNN [Raw hardware event descriptor]
cpu/t1=v1[,t2=v2,t3 ...]/modifier [Raw hardware event descriptor]
(see 'man perf-list' on how to encode it)
mem:<addr>[/len][:access] [Hardware breakpoint]
Metric Groups:
i8f@ubuntu:~/Desktop/18_floor/source_code/rr_test$
OK, the PMU is definitely not working in the VM guest. I don't think we can really help you; maybe you can take this up with VMWare support? The perf stat
results are all you need.
OK, the PMU is definitely not working in the VM guest. I don't think we can really help you; maybe you can take this up with VMWare support? The
perf stat
results are all you need.
unfortunately heared this, but thank u . I will close the issue.
Hey, I want to use mozilla rr on ubuntu . But seems it can't work.
Here is my environment information.
My ubuntu version is 20.04.1:
And my vmware pro version is
|16.2.1 build-18811642|
.My CPU version info is:
I followed your build tutorial.
The only thing which I canged is that:
I found my cpuid number is
|0x0090672|
, but seems the source code don't include it. so I add it...Then I build it, compile it. install it.
And follow your turtoial, virtual-machine-guests part, I set the related optionis in vmware:
And I Add this line to .vmx file:
note
|monitor_control.disable_hvsim_clusters = "TRUE"|
is the line which I added.But It still can't work:
Then I use this command:
seems the hardware performance counter still can't work. would u mind help me about this? THX!
:)