Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Discussions related to using VirtualBox on Linux hosts.
JPFSanders
Posts: 5
Joined: 4. Jul 2019, 00:32

Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by JPFSanders »


ModEdit; related ticket: #18753: Linux Host: VMs on Virtualbox 6.0.x are running abnormaly slow on modern AMD Processors
Hi,

I'm experiencing an issue with my computer and virtualbox, suddenly I've discovered that my VMs run incredibly slow, both CPU and Graphically.

VMs boot slowly and take forever to do anything, in particular a debian 9 vm took me more than 1h to update via APT.

Previously the same VM on the same host computer was so fast I could even edit video using KDENLive inside the VM, however now it struggles even to move a window over the Mate desktop.

I've tried with Vitualbox 5.2.x and 6.0.x, all vga modes I've tried the test build VirtualBox-6.0.9-131597-Linux_amd64.run, always the same result, VMs are sluggish including a Windows XP one that alwas was super fast now it is so sluggish even the boot animation is slow.

I think this might have started after upgrading to kernel 5.0/5.1, this machine used to run VMs like a champ in Vbox before, thing is I have an intel computer running the same 5.1.15 kernel where virtualbox 6.0.8 performs great, so issue might be AMD specific.

This is /proc/cpuinfo:

Code: Select all

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 23
model           : 1
model name      : AMD Ryzen 7 1800X Eight-Core Processor
stepping        : 1
microcode       : 0x8001138
cpu MHz         : 2195.009
cache size      : 512 KB
physical id     : 0
siblings        : 16
core id         : 0
cpu cores       : 8
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca
bugs            : sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 7185.38
TLB size        : 2560 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 43 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate eff_freq_ro [13] [14]
OS: Ubuntu 18.04.2 VGA: Radeon 480
Uname: Linux brutus.xxx.xxx 5.1.15-050115-generic #201906250430 SMP Tue Jun 25 04:33:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

LSPCI:

Code: Select all

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset USB 3.1 xHCI Controller (rev 02)
01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset SATA Controller (rev 02)
01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b2 (rev 02)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port (rev 02)
02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port (rev 02)
02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X] (rev c7)
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 580]
07:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
07:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) USB 3.0 Host Controller
08:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
08:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
08:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller
Please find attached a dump of dmidecode and the vbox.log ( vbox 6.0.8 ) starting and stopping the affected debian VM.

Nothing else is slow on this computer, and it is rock solid stable (after disabling CPU C6 state that is).

Any help is welcomed.
Attachments
VBox.log.zip
(34.4 KiB) Downloaded 28 times
dmidecode.log.zip
(3.26 KiB) Downloaded 27 times
Last edited by socratis on 14. Jul 2019, 20:56, edited 1 time in total.
Reason: Added ticket related information.
JPFSanders
Posts: 5
Joined: 4. Jul 2019, 00:32

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x

Post by JPFSanders »

Tried with kernel 4.18.0-25 and the same results, all VMs are very slow.
JPFSanders
Posts: 5
Joined: 4. Jul 2019, 00:32

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x

Post by JPFSanders »

I've tried to deploy the same Debian 9 OS on a KVM based virtual machine in the same Ryzen computer, it literally flies in comparison with VirtualBox 6.x, it runs at about the same speed VirtualBox used to run before this issue.

As Kernel 5.2 has been released I will try to upgrade to it and see if it makes a difference.
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x

Post by andyp73 »

There isn't anything obvious jumps out from the VBox.log file. You certainly aren't overcommitting resources to the guest and starving the host. I think it may be worth disabling, one at a time, some of the guest features and see if anything improves the situation. I would start by disabling 3D graphics, then audio, then switching the vGPU to VBoxVGA.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
VersedBook0
Posts: 5
Joined: 12. Jun 2019, 09:13

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x

Post by VersedBook0 »

I'm also having trouble with this. In fact if you do a search of all the complaints of slow systems it seems Linux Host and AMD cpu feature in the common list.

I've got an older AMD 8150 8 core and at some point it start to run really really slow. Usable, just, No errors, just way slow.

I've tried changing everything andyp73 suggests, plus 2d acceleration, delete and reinstall guest additions, all video options. All to no avail.
socratis
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 5/6 very slow on Ryzen 1800X and Kernel 5.1.x

Post by socratis »

These kinds of problems that are reproducible, should be reported to the bug tracker. Either search for an appropriate bug, or open a new bug report where you'll attach your logs and other vital information.

It would also help if you can post the bug report number here so other can see the progress, add information, or see the final resolution.
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.
JPFSanders
Posts: 5
Joined: 4. Jul 2019, 00:32

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x

Post by JPFSanders »

The sole reason in my case for opening a thread here is because on the bug tracker I saw a recommendation that for this type of "out of the blue inexplicably slow issue" it is better to open a thread in the forum. :lol:

Also "my computer is slow" is too vague for a bug tracker, after all I could be doing something wrong, it is clear now that there is some kind of issue with AMD after other people have confirmed they too are experiencing weird performance issues. :D

Regardless, if I disable the 3D acceleration some distros perform a bit better, specially Debian 9.x and CentOS 7.x Ubuntu 16.04.x/18.04.x is slow as molasses regardless of what I enable/disable.

Windows XP is completely crippled and Windows 8.1 is very slow but usable.

Hope this helps.

I also tried to install a different kernel (Liquorix 5.1.0.17) and no change.
Last edited by socratis on 13. Jul 2019, 18:43, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
socratis
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 5/6 very slow on Ryzen 1800X and Kernel 5.1.x

Post by socratis »

JPFSanders wrote:because on the bug tracker I saw a recommendation that for this type of "out of the blue inexplicably slow issue" it is better to open a thread in the forum. :lol:
That would most probably have been me! :D

I'm trying to lessen the load for the developers in areas where 1) there's nothing out of the ordinary to report, 2) it has already been reported. Yours doesn't sound like it fits the pattern.

One of the problems is that most people are using Intel CPUs, so it's not easily reproducible by an experienced VirtualBox user. That's why I said to hit the bug tracker, the developers have AMD systems.
socratis wrote:It would also help if you can post the bug report number here so other can see the progress, add information, or see the final resolution.
Please remember that if you open, or if you subscribe to a ticket...
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.
socratis
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 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by socratis »

Added ticket information, thankfully I was able to link 'JPFSanders' in the forums, with 'Sanders' in the bug tracker, not that difficult... ;)

Can I ask (out of curiosity) why you didn't use the same username/nickname?
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.
JPFSanders
Posts: 5
Joined: 4. Jul 2019, 00:32

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by JPFSanders »

I did the bug report very quickly as I had some work soon afterwards, I think the browser might have auto-completed, also looking at the ticket it doesn't state Linux Host, which probably was me not setting it either.

Many thanks for linking both, sorry to give you extra work. :(

Is there any way to change the nick on the bug tracker?
socratis
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 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by socratis »

JPFSanders wrote:Is there any way to change the nick on the bug tracker?
I don't think so, and it shouldn't really matter...
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.
franciscofruiz
Posts: 1
Joined: 5. Dec 2019, 16:51

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by franciscofruiz »

I had the same issue, I am a developer (PHP,ROR,mysql,postgresql,etc) and I have several virtual machines, OS: debian 7x,8x,9.x,Centos,Win7,win server,etc, all my guests were OK even running four at the same time on Intel, but after a migration from Intel I3 6100u to Ryzen 5 3500U- 16GBRAM all my virtual machines went so slow, i.e. just to move the cursor it was a delay beetween 1 or 2 seconds, almost impossible to work. I tried re-installing virtual machines, guest addons, changing display, ram, cores,3d, 2d, everything and nothing worked. Today, I am so happy (after a couple of months), I just made a downgrade VirtualBox 6.x to the latest VirtualBox 5.x (5.2.34) (released October 15 2019) and now everything is running like before or better. Hope this works for everybody using ryzen. PS. My Host is Windows 10 Pro
socratis
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 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by socratis »

@franciscofruiz,
Just an FYI... the developers work with both kinds of CPUs. If there was a widespread, AMD-specific issue, I'm sure that they would be the first ones noticing and complaining...

And since they have the "know-how", they would have fixed the issue in less time than it took you to register in the forums! :)
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.
zemzema
Posts: 4
Joined: 12. Dec 2019, 14:24

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by zemzema »

I tried VirtualBox on AMD processor and Intel processor... on Ryzen (Ryzen 7 1700x) with same settings everything is very slow, on Intel (Intel 4770k) is working normal.
pgnd
Posts: 2
Joined: 20. Dec 2019, 20:15
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Linux(es), Win10

Re: Virtualbox 5/6 very slow on Ryzen 1800X and Kernel 5.1.x (#18753)

Post by pgnd »

I'm seeing similar reproducible very laggy perf with Win10 guests on VB 6.1.0 hosts, with Ryzen 7 3700X CPU. All's good on older CPUs.

Added log to @JPFSanders ' ticket #18753
Post Reply