-
Notifications
You must be signed in to change notification settings - Fork 612
make test fails for most tests on a Parallels VM #1818
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
Comments
That looks ... bad. I haven't seen anything like that before. I suspect a bug in Parallel's PMU virtualization. I'd focus on recording and replaying the |
Those values are different by exactly 2^31, fwiw. |
I guess you could try masking off the high bit and see how far that gets you... |
@rocallahan Sorry to be a noob, but I just downloaded One additional piece of information: I noticed today that each test sometimes passes, sometimes not. Seems to be some nondeterminism involved somehow. (Maybe that's expected, I'm not sure.) |
rr uses performance counters to establish a timeline of program execution. This is then used during replay to deliver asynchronous events (e.g. @rocallahan is suggesting that you modify |
As pointed out by @rickard-von-essen in machyve/xhyve#91 (comment)
|
I can confirm that this looks the same on Parallels Desktop 12 for Mac Pro ed 12.0.2 (41353). With the virtualisation type set to Parallels. |
$ dmesg|grep PMU
[ 0.009541] Performance Events: PEBS fmt2+, 16-deep LBR, Haswell events, full-width counters, Broken PMU hardware detected, using software events only.
$ uname -a
Linux fedora-24-x86-64.shared 4.5.5-300.fc24.x86_64 #1 SMP Thu May 19 13:05:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux @legal90 Do you know if there is anyone at Parallels who would like to dive into this? |
Hi everyone! |
Hi! PMU virtualization for Linux guests is fixed in Parallels Desktop 13. Let me know if you have any issues. |
@Gumix That is great news! Does this mean that rr passes all tests when run in a Linux guest on Parallels Desktop 13? |
@sidkshatriya Well, most of them passed :) I'm not familiar with rr, so don't know how to investigate these failures, but I hope that they're not caused by virtualization (don't see anything strange in internal logs).
There are many errors like:
|
What Linux kernel version are you using in the guest? Showing us the errors from a few more of the tests might be helpful. |
4.11.8-300.fc26.x86_64
|
You are hitting: http://robert.ocallahan.org/2017/06/patch-on-linux-kernel-stable-branches.html Try with a guest kernel that's not affected by that regression: http://robert.ocallahan.org/2017/07/upstream-stable-kernels-work-with-rr.html |
Here are the results with 4.12.8-300.fc26.x86_64:
|
Thanks. It looks like PMU interrupts are sometimes being dropped :-(. If you're sure you were running with 4.12.8 then that means interrupts are being dropped further down the stack, in Parallels or possibly by MacOS itself. It looks like the chew_cpu test is reproducing this reliably. |
I will check it. BTW, Linux perf subsystem configures APIC to "NMI" delivery mode, but the hypervisor intercepts it and writes "Normal" delivery mode to the real APIC for PMI. It may lead to some inaccuracy in the results. |
I didn't see Parallels either way on list of supported VMs on the wiki page (https://github.com/mozilla/rr/wiki/Building-And-Installing), so I'm not sure if I'm barking up the wrong tree by trying to use
rr
in Parallels...I'm running Parallels 9. I have PMU virtualization enabled. Guest OS is Ubuntu 14.04. I cloned the HEAD of
rr
'smaster
branch, currently b0ae677. Built fine, butmake test
is failing for most the tests:If I look in
Testing/Temporary/LastTest.log.tmp
, I see things like:The output of
perf list
is:Also:
The text was updated successfully, but these errors were encountered: