Skip to content
SkimNews
SponsoredApplysparrowPaste a job link, get a resume written for that job.Try it free →
Tech & AI

virtio-nvgpu: NVIDIA GPU VMs Hit 2% Bare-Metal Overhead

The 30-Second Skim7 points

  • What happenedThe open-source virtio-nvgpu project forwards NVIDIA kernel driver ioctls between Linux guests and hosts at the driver ABI level, achieving within 2% of bare-metal GPU performance in KVM virtualization and enabling guest-side NVENC encoding that API-level translators cannot support.
  • Key facts & numbersvirtio-nvgpu forwards NVIDIA kernel driver ioctls between a Linux guest and host at the driver ABI level, bypassing API-level translation while letting the guest run NVIDIA's unmodified user-mode drivers, Vulkan, and NVENC libraries Measured on an RTX 3060 with driver 595.99.02 against an identical headless Vulkan load, guests render within 2% of bare metal, and four guests sharing one card split ~26 fps each (103.7 fps combined vs 102.9 fps for a single guest) with no NVENC session limit reached Over 813,691 frames the virtio-nvgpu backend served 13,792 messages — roughly one VM crossing per 59 frames, nearly all device setup — versus Venus's ~2,000 serialized API calls per frame on draw-call-heavy games
  • What happens nextVenus fires ~2,000 messages per game frame; virtio-nvgpu fires one every 59 frames. Same NVIDIA card, same drivers, totally different virtualization layer.
  • virtio-nvgpu forwards NVIDIA kernel driver ioctls between a Linux guest and host at the driver ABI level, bypassing API-level translation while letting the guest run NVIDIA's unmodified user-mode drivers, Vulkan, and NVENC libraries
  • Measured on an RTX 3060 with driver 595.99.02 against an identical headless Vulkan load, guests render within 2% of bare metal, and four guests sharing one card split ~26 fps each (103.7 fps combined vs 102.9 fps for a single guest) with no NVENC session limit reached
  • Over 813,691 frames the virtio-nvgpu backend served 13,792 messages — roughly one VM crossing per 59 frames, nearly all device setup — versus Venus's ~2,000 serialized API calls per frame on draw-call-heavy games
  • The guest owns its own GPU buffers, enabling NVENC encoding from CUDA device pointers with real CUDA interop, a capability Venus cannot offer because it host-owns buffers and blocks guest-side compositing

Why It Matters

Cloud gaming, VDI, and GPU-streaming providers currently face a binary choice on NVIDIA: VFIO passthrough dedicates a whole GPU per VM, while Venus adds 6–18% frame-budget overhead per frame and blocks guest-side encoding. virtio-nvgpu closes both gaps at once — within 2% of bare metal, flat CPU cost across four guests, and working guest-side NVENC — by virtualizing at the ioctl layer instead of the graphics API.

Sources Cited

Related Coverage

The day’s news in one short email, every morning.

Free. One email a day. Unsubscribe in one click.