Anybody uses PMU virtualization on a Linux guest?

Discussion in 'Linux Virtual Machine' started by nickolay, Jul 25, 2015.

  1. nickolay

    nickolay Bit poster

    Messages:
    3
    I was interested to try rr in a PD virtual machine. rr is record-replay tool debugging tool, which relies on CPU "performance counters" for its work.
    Luckily, Parallels seems to support this with "Configure -> Hardware -> CPU & Memory -> Enable PMU virtualization".
    However, when I tried this on Ubuntu 14.04 it doesn't seem to work (see below [1]).

    My questions are:
    1. Am I right that "Broken PMU hardware detected" means the PMU virtualization didn't work with the guest I'm using?
    2. Is there a known good guest that works for someone else? I'm guessing success might depend on the guest...
    3. Any other debugging tips or links? There's virtually zero information on this feature that I can find.
    Parallels Desktop 10.2.1, OS X 10.9.5, late 2013 retina 15-inch MacBook Pro.
    Linux ubuntu 3.13.0-58-generic #97-Ubuntu SMP Wed Jul 8 02:56:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

    [1]
    dmesg has this:
    [ 1.252008] smpboot: CPU0: Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz (fam: 06, model: 46, stepping: 01)
    [ 1.360353] Performance Events: PEBS fmt2+, 16-deep LBR, Haswell events, full-width counters, Broken PMU hardware detected, using software events only.
    [ 1.363856] Failed to access perfctr msr (MSR 4c1 is 0)
    [ 1.427860] NMI watchdog: disabled (cpu0): hardware events not enabled

    If I try 'perf stat', it reports this:
    Performance counter stats for 'yes':
    141.697409 task-clock (msec) # 0.278 CPUs utilized
    174,445 context-switches # 1.231 M/sec
    0 cpu-migrations # 0.000 K/sec
    172 page-faults # 0.001 M/sec
    <not supported> cycles
    <not supported> stalled-cycles-frontend
    <not supported> stalled-cycles-backend
    <not supported> instructions
    <not supported> branches
    <not supported> branch-misses
     

Share This Page