clang/Ubuntu slow with VT-x enabled
Posted: 11. Jan 2022, 08:33
I have two Ubuntu virtual machines (18.04, 20.04) and two other linux-based distros (fedora and cent os) running on a Windows host as part of a kind of CI build. On the Ubuntu machines, I have a clang compilation running every night; on the other machines a g++ compilation.
The compilation on the Ubuntu machines now seems to be much slower with VT-X enabled, than with the "NEM" mode (with the turtle symbol in the status bar). How do I know? Well, I had installed WSL2 recently, and this screwed up my VirtualBox machines (leading to "HMR3Init: Attempting fall back to NEM: VT-x is not available" in the logs, which I noticed only after a while); once I noticed it, I disabled WSL2 via. Now the log shows the message "HM: HMR3Init: VT-x w/ nested paging and unrestricted guest execution hw support" instead, and indeed the start into the graphical user interface is much faster; but the compilation times have become much slower (from 12 to 32 minutes on one, from 14 to 33 on the other Ubuntu virtual machine). The compilation times on the other two linux machines where unaffected or got a little faster; hard to say because there's been quite the fluctuation there even without any changes to the backend in the last few days.
I'm wondering about this drop in performance, but have no idea where it could come from; didn't see anything I could identify as related in the log file (the one from Ubuntu 20.04 is attached - VBox.log with VT-x enabled, VBox.log.2 from before).
Since only the Ubuntu machines are slow, maybe it is related to what was reported here: viewtopic.php?f=6&t=103364 ? Need to do some more tests I guess, if clang on other machines is affected as well for example...
Any idea on what might be happening here?
The compilation on the Ubuntu machines now seems to be much slower with VT-X enabled, than with the "NEM" mode (with the turtle symbol in the status bar). How do I know? Well, I had installed WSL2 recently, and this screwed up my VirtualBox machines (leading to "HMR3Init: Attempting fall back to NEM: VT-x is not available" in the logs, which I noticed only after a while); once I noticed it, I disabled WSL2 via
Code: Select all
bcdedit /set hypervisorlaunchtype offI'm wondering about this drop in performance, but have no idea where it could come from; didn't see anything I could identify as related in the log file (the one from Ubuntu 20.04 is attached - VBox.log with VT-x enabled, VBox.log.2 from before).
Since only the Ubuntu machines are slow, maybe it is related to what was reported here: viewtopic.php?f=6&t=103364 ? Need to do some more tests I guess, if clang on other machines is affected as well for example...
Any idea on what might be happening here?