1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

VirtualBox 4.1 OpenGL 3D Guest Performance

Michael Larabel

Published on 8 November 2011
Written by Michael Larabel
Page 1 of 3 - 14 Comments

While KVM may be very fast for Linux virtualization, one of the areas where VMware and VirtualBox are superior is when it comes to the ability to provide hardware-accelerated 2D/3D support to guest virtual machines that ultimately is passed onto the host and its graphics card / driver. In this benchmark is a look at the gaming performance of Oracle's VM VirtualBox 4.1 when using their "Chromium" driver to enable guest Linux OpenGL acceleration.

Back in March I published some VirtualBox 4.0 3D benchmarks, which were rather unpleasant and left a lot to be desired, but the benchmarks today are coming from new hardware and using the latest VirtualBox release (v4.1.2) available on Ubuntu 11.10 in the Oneiric repository. The guest drivers were also installed, which is needed for enabling the VirtualBox guest driver dubbed Chromium (not to be confused with Google's Chromium).

The OpenGL Windows guest acceleration in VirtualBox came in late 2008 and in early 2009 there was Direct3D acceleration for Windows guests. The OpenGL Linux support came to VirtualBox a few months later. This support was originally introduced in the VirtualBox 2 series. VirtualBox 3.0 came with OpenGL 2.0 support along with SMP support and other improvements.

Unlike VMware's implementation that uses the Gallium3D architecture in passing graphics calls from the guest to host, the Innotek/Sun/Oracle developers working on VirtualBox haven't been convinced about this model and use their own model. Since then we have seen the release of VirtualBox 4.0 and VirtualBox 4.1, so we are seeing today where the guest 3D support is standing. This support is available on all supported platforms: Windows, Linux, Mac OS X, and Solaris.

For those wondering about the technical implementation of this 3D support, the documentation describes it as, "Technically, VirtualBox implements this by installing an additional hardware 3D driver inside your guest when the Guest Additions are installed. This driver acts as a hardware 3D driver and reports to the guest operating system that the (virtual) hardware is capable of 3D hardware acceleration. When an application in the guest then requests hardware acceleration through the OpenGL or Direct3D programming interfaces, these are sent to the host through a special communication tunnel implemented by VirtualBox, and then the host performs the requested 3D operation via the host's programming interfaces."

The 2D hardware accelerated description is along similar lines. "With this feature, if an application (e.g. a video player) inside your Windows VM uses 2D video overlays to play a movie clip, then VirtualBox will attempt to use your host's video acceleration hardware instead of performing overlay stretching and color conversion in software (which would be slow). This currently works for Windows, Linux and Mac host platforms, provided that your host operating system can make use of 2D video acceleration in the first place...Technically, VirtualBox implements this by exposing video overlay DirectDraw capabilities in the Guest Additions video driver. The driver sends all overlay commands to the host through a special communication tunnel implemented by VirtualBox. On the host side, OpenGL is then used to implement color space transformation and scaling."

On a ZaReason notebook with an Intel Core i7 "Sandy Bridge" processor and NVIDIA graphics, the OpenGL performance was compared within VirtualBox and when running on bare metal. Several open-source games were tested at a variety of resolutions under both system. The official NVIDIA binary Linux driver was used the entire time during testing.

<< Previous Page
1
Latest Linux Hardware Reviews
  1. CompuLab Intense-PC2: An Excellent, Fanless, Mini PC Powered By Intel's i7 Haswell
  2. From The Atom 330 To Haswell ULT: Intel Linux Performance Benchmarks
  3. AMD Radeon R9 285 Tonga Performance On Linux
  4. Apotop Wi-Copy
Latest Linux Articles
  1. AMD Moves Forward With Unified Linux Driver Strategy, New Kernel Driver
  2. MSI: Update Your BIOS From The Linux Desktop
  3. NVIDIA vs. AMD 2D Linux Drivers: Catalyst Is Getting Quite Good At 2D
  4. 15-Way GPU Comparison With Mesa 10.3 + Linux 3.17
Latest Linux News
  1. Following GCC, Clang Looks To Default To C11
  2. Users/Developers Threatening Fork Of Debian GNU/Linux
  3. Linux 3.18-rc1 Released One Week Early With Many Changes
  4. The VC4 Gallium3D Driver Is Still Moving Along For The Raspberry Pi
  5. Direct3D 9 Support Might Land Within Mainline Mesa 3D Drivers
  6. OpenGL Preview Benchmarks For NVIDIA's GeForce GTX 970
  7. HOPE: The Ease Of Python With The Speed Of C++
  8. Vitesse: Using LLVM To Speed Up Databases
  9. AMD Is Restructuring Again, Losing 7% Of Employees
  10. Linux Testing Of The NVIDIA GeForce GTX 970
Latest Forum Discussions
  1. NVIDIA Presents Its Driver Plans To Support Mir/Wayland & KMS On Linux
  2. AMD Is Restructuring Again, Losing 7% Of Employees
  3. Bye bye BSD, Hello Linux: A Sys Admin's Story
  4. Open-Source AMD Fusion E-350 Support Takes A Dive
  5. Upgrade to Kaveri, very slow VDPAU performance
  6. ChromeOS Drops Support For EXT2/EXT3/EXT4 File-Systems
  7. Lennart Poettering On The Open-Source Community: A Sick Place To Be In
  8. The Slides Announcing The New "AMDGPU" Kernel Driver