I'm having some performance issues with a Linux VM (nixos) running on a Solaris 11.4 host. I borrowed this format from another post that I found helpfully organized, thanks!
PC: Dell PowerEdge R530
CPU: Intel Xeon E5-2650 v4 @ 2.20GHz (12 physical cores, 24 threads)
MEM: 16GB
Virtualbox version: 6.1.34 r150636 solaris.amd64
CPUs allocated to VM: 1
MEM allocated to VM: 0.5GB
Host OS: Solaris 11.4.42.111.0 (latest CBE as of today), "SunOS eros 5.11 11.4.42.111.0 i86pc i386 i86pc non-virtualized"
Guest OS: nixos minimal live CD iso (nixos-minimal-21.11.337422.3c5ae9be1f1-x86_64-linux.iso)
The symptoms are:
* The VM seemed slow when I changed the host system hardware from an old i7-920 to the Xeon E5-2650v4. Not slow enough to be useless, but much slower than I expected.
* Simple benchmark: "time dd if=/dev/zero of=/dev/null bs=1M count=10000" takes ~1 second on the host OS and takes ~16 seconds on the guest. I don't expect virtualization overhead to reduce performance by 16x.
* Other reference points for that same benchmark: 0.25s on my Windows 10 i9-9900K (under cygwin) and 0.5s in the same nixos-minimal guest image running as a VirtualBox guest on that (Windows 10) host.
* I tried a bit more CPU intensive benchmark: "time dd if=/dev/zero bs=1048576 count=1000 | sha256sum" which is 17 seconds on the (Xeon solaris) host and 24 seconds on the (nixos-minimal) guest. That's actually much better overhead! But wait, on my i9-9900K under Windows/cygwin the host OS takes 3.5 seconds and the nixos-minimal guest takes only 2.8s! So the virtualization overhead is negative?? Nope, the implementations are very different! And that's true between solaris and linux too. Basically I need to use a better benchmark, something that's more identical/repeatable across OS platforms. But there's no doubt, the guest VM is just sluggish on the Xeon while the host OS is snappy, and that same nixos-minimal guest is super snappy under Virtualbox on my Windows PC. So something's up.
Solutions I've tried:
* Setting the chipset to PIIX3 or ICH9. This change had no effect.
* Modifying the number of CPUs allocated to the VM to 1, 2, 3, 4, 6, 8, 10. No setting had much effect on the benchmark.
* Enabling and disabling PAE/NX, Nested VT-x/AMD-V, and Nested Paging. These changes had no effect.
* Updating all OS versions, VirtualBox version, etc. to the latest.
* Rebooting the host PC.
* Disabling all extra stuff USB, sound card, storage controllers (besides the live CD), network devices, etc.
Any suggestions would be appreciated. VBox.log is attached (zipped) from a "bad" run on the solaris/Xeon host.