Skip to content
프로젝트

소개

여러 VM이 NVIDIA GPU 하나를 베어메탈 속도로 공유할 수 있게 하는 virtio 장치입니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+3
in 15 days
+6
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

virtio-nvgpu

Share one NVIDIA GPU across several VMs, at bare-metal speed.

Run NVIDIA's own unmodified drivers (Vulkan, NVENC, and CUDA) inside multiple microVMs, while the host keeps the card. No vGPU licenses or VFIO passthrough needed.

Why

  1. Passthrough locks the whole GPU to one VM.
  2. vGPU costs real money and only works on datacenter cards.
  3. API forwarding (Venus, virgl) is hella slow, and doesn't support NVENC or CUDA.

virtio-nvgpu forwards the NVIDIA driver instead of the graphics API. The guest builds its own GPU commands and writes them straight to GPU memory, so a frame being drawn doesn't cross the VM boundary. Nothing gets serialized and replayed on the host the way Venus and virgl do it.

How fast

On an RTX 3060:

  • Within 2% of bare metal for any real game frame (>2 ms)
  • Same CPU cost as running on the host
  • 12 VMs on one card, splitting it evenly, each encoding 720p60 H.264 with no dropped frames

[!NOTE] 12 is what we tested, not a hard cap. Like containers, you're limited by:

  1. VRAM. A game needs gigabytes, so this usually runs out first. Cap each guest with --vram-limit-mib.
  2. Host CPU and RAM for each guest.
  3. NVENC's 12-session cap on GeForce cards. Our Nestri capture layer encodes with Vulkan Video, which doesn't count against it (16 at once worked fine).

Numbers and method →

Who it's for

People who stream games or GPU apps from headless VMs (cloud gaming, remote desktops, CI with a real GPU, selfhosted "serverless" AI) on consumer NVIDIA cards.

Before you use it

  • It isn't hardware isolation. The host NVIDIA driver is the trust boundary. If your tenants don't trust each other, use passthrough or vGPU. (It's roughly the same trust boundary Docker containers have.) Details →
  • Linux guests and hosts only. Supports driver 535.129.03 and newer.
  • This is an early version, tested on only two cards. CUDA works but hasn't been benchmarked.

Learn more

Inspired by gVisor's nvproxy, and kayfabe by Reindert Pelsma.

관련 프로젝트 살펴보기

불러오는 중…