I do a lot of scientific computing, and I recently switched from an old Intel i7-3960x workstation to a custom Threadripper 2990wx build with 128Gb of RAM. I use VMs to test our software on various platforms, and of course I was excited to have so many cores to distribute among test VMs. I am using the same basic setup as I did with the i7 system: VirtualBox on a Fedora host system (currently v29), running CentOS, Ubuntu, and Fedora guest OS systems for test purposes. The VMs on the threadripper system seem to work, but they are brutally slow. There is terrible input lag and the systems require tens of minutes just to boot up. But they do appear to run, so there is no clear error state.
Has anyone else experienced this? Does anyone know how much AMD-related testing there has been w.r.t. VirtualBox and threadrippers? A basic search for "threadripper" didn't turn up much here.
[Resolved] VirtualBox 6.0 brutally slow with AMD Threadripper 2
Re: VirtualBox 6.0 brutally slow with AMD Threadripper 2
Performed a regression test: removed vb-6.0.x and installed vb-5.2. Performance of test VMs was completely normal with v5.2. Therefore the issue is specifically with the new v6.0 release.
Re: VirtualBox 6.0 brutally slow with AMD Threadripper 2
Next test: VBox 6.0 on an intel i7 laptop running Fedora 29. CentOS 7 guest OS VM worked normally. Therefore I believe the issue is specifically with VBox 6.0 and AMD processors. Or at least my AMD processor, which is the 2990wx. Next test: reboot to Windows 10 and install VBox 6.0 to see if the host OS is involved.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VirtualBox 6.0 brutally slow with AMD Threadripper 2
Excellent triage job so far!
May I suggest another test, not sure if you've done it or not; different 6.0.x versions, to make sure that it's a 6.x issue, and not a 6.0.i vs 6.0.j issue.
And if you could grab a VBox.log from a failing and a working version? A complete VBox.log, from a complete VM run, where the problem occurs:
May I suggest another test, not sure if you've done it or not; different 6.0.x versions, to make sure that it's a 6.x issue, and not a 6.0.i vs 6.0.j issue.
And if you could grab a VBox.log from a failing and a working version? A complete VBox.log, from a complete VM run, where the problem occurs:
- Start the VM from cold-boot (not from a paused or saved state) / Observe problem / Shutdown the VM (force close it if you have to).
- With the VM completely shut down (not paused or saved), right-click on the VM in the VirtualBox Manager and select "Show Log".
- Save only the first "VBox.log", ZIP it and attach it to your response. See the "Upload attachment" tab below the reply form.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Posts: 5
- Joined: 12. Jun 2019, 09:13
Re: VirtualBox 6.0 brutally slow with AMD Threadripper 2
Just so you know you're not alone, I've also found quite a slow down since upgrading to 6.
Also with an AMD CPU, but an older 8 core 8150. Linux Host (Mageia 6)
My VMs don't seem quite as slow as yours but absolutely slower. The scroll wheel is the most noticeable, it no longer zoom, you have to wait.
Also with an AMD CPU, but an older 8 core 8150. Linux Host (Mageia 6)
My VMs don't seem quite as slow as yours but absolutely slower. The scroll wheel is the most noticeable, it no longer zoom, you have to wait.
-
- Posts: 7
- Joined: 12. Jul 2019, 11:39
Re: VirtualBox 6.0 brutally slow with AMD Threadripper 2
I've got the same CPU, 2990WX, the virtualbox machine Windows 10 takes forever to load. I had to disable Hyper-V at the main OS start...(windows 10). After waiting 10 minutes it loads correctly and it has pretty decent performance..
-
- Posts: 16
- Joined: 21. Jul 2009, 08:41
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows XP, linux 32 nit, linux 64 bit
Virtualbox 6 + AMD Threadripper 2: poor performace
I have the very same problem described in this post viewtopic.php?f=7&t=93320
I just tried with last Virtualbox version (6.0.12), and the performance was incredibly low. I attach the zipped log.
I was forced to downgrade to version 5.2.32. With it the performances are back to normal.
And why can't I assign more than 16 CPUs (8 recommended) to the VM (neither with 6.0.12 nor with 5.2.32)? best regards
Max
I just tried with last Virtualbox version (6.0.12), and the performance was incredibly low. I attach the zipped log.
I was forced to downgrade to version 5.2.32. With it the performances are back to normal.
And why can't I assign more than 16 CPUs (8 recommended) to the VM (neither with 6.0.12 nor with 5.2.32)? best regards
Max
- Attachments
-
- NXP-18.04-2019-09-06-21-28-27.log.zip
- Execution Log
- (37.62 KiB) Downloaded 30 times
Max
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VirtualBox 6.0 brutally slow with AMD Threadripper 2
Which is exactly the reason that your post got merged with that thread...mastupristi wrote:I have the very same problem described in this post viewtopic.php?f=7&t=93320
I don't know but something is really funky about that CPU and the way that VirtualBox sees it:mastupristi wrote:And why can't I assign more than 16 CPUs (8 recommended) to the VM (neither with 6.0.12 nor with 5.2.32)?
I don't think I've seen 8 threads per core before, something's wrong here!00:00:00.513737 NumCPUs <integer> = 0x0000000000000008 (8) 00:00:00.633358 CPUM: Logical host processors: 64 present, 64 max, 64 online, online mask: ffffffffffffffff 00:00:00.634288 CPUM: Physical host cores: 8 00:00:00.634691 Full Name: "AMD Ryzen Threadripper 2990WX 32-Core Processor"
AMD (and almost everyone that I could find) claim 32 cores/64 threads (which makes a lot more sense).
You need to lower the number of CPUs that you've assigned to your guest. For whatever reason (could be a bug) VirtualBox sees 8 cores. You can't assign all of them to your guest, slowdowns will happen...
That's *a lot* of virtual pixels that your CPU-driven, virtual GPU (vGPU) must handle. Expect slowdowns.00:00:00.465823 GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenAvailableGeometryCalculated: Screen 0 work area is actually resized to: 0x33 x 3840x2086
Go to the VM Settings » Storage » select your SATA controller » Use Host I/O Cache: enable that.00:00:00.513939 [/Devices/ahci/0/LUN#0/Config/] (level 5) 00:00:00.513940 BlockCache <integer> = 0x0000000000000001 (1)
You might want to change the USB controller to xHCI (USB3).00:00:00.514176 [/Devices/usb-ehci/] (level 2)
Go to the VM Settings » Display » Screen. Change the Graphics controller from "VBoxVGA" to "VMSVGA". Enable 3D acceleration. Increase the VRAM to the max 128 MB.00:00:00.514222 3DEnabled <integer> = 0x0000000000000000 (0) 00:00:00.514230 VRamSize <integer> = 0x0000000003000000 (50 331 648, 48 MB)
You need to update the GAs. With the VM window having the focus, go to the host's menu "Devices" » "Insert Guest Additions CD Image...". If not prompted by auto-run, run "VBoxLinuxAdditions.run" from the CD. Make sure there are no errors or suggestions during the install. You can safely ignore the "modprobe vboxsf" one.00:00:00.452882 VirtualBox VM 6.0.12 r133076 linux.amd64 (Sep 3 2019 12:51:52) release log 00:00:18.575135 VMMDev: Guest Additions information report: Version 6.0.6 r130049 '6.0.6'
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Posts: 16
- Joined: 21. Jul 2009, 08:41
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows XP, linux 32 nit, linux 64 bit
Re: VirtualBox 6.0 brutally slow with AMD Threadripper 2
How to report this bug?socratis wrote:You need to lower the number of CPUs that you've assigned to your guest. For whatever reason (could be a bug) VirtualBox sees 8 cores. You can't assign all of them to your guest, slowdowns will happen...
I've been following all your advice. The performances are now absolutely acceptable.
For completeness I attach the last log
The only other issue left is the incorrect detection of the number of physical cores.
best regards
Max
- Attachments
-
- NXP-18.04-2019-09-07-21-14-41.log.zip
- (43.92 KiB) Downloaded 31 times
Max