Open-Source nvdriver Pushes NVIDIA's V100 Past 1 TB/s in Rust
A clean-room Rust rewrite of NVIDIA's Linux kernel driver removes software locks on P2P, NVENC, vGPU, and unlocks V100 HBM2 clocks.
Takeaways
- nvdriver is a clean-room Rust rewrite of NVIDIA's Linux kernel driver, drop-in compatible with CUDA userspace.
- Removes NVIDIA's software locks on PCIe/BAR1 P2P, Resizable BAR, GPUDirect RDMA, NVENC sessions, and vGPU/SR-IOV licensing.
- Unlocks Tesla V100 HBM2 from 877.5 MHz to 1080 MHz, pushing PyTorch STREAM past 1 TB/s (+24%).
- llama.cpp prompt eval jumps 10.3% and FP16 tensor core GEMM gains 9.4% on V100-SXM2-32GB.
- Pure
#![no_std]Rust core with strict kernel hygiene: zero GOT relocs, SIMD, or memcpy; frames under 1,024 bytes. - Verified on 8x V100 with 77/77 parity checks; Maxwell through Rubin wired but only emulator-verified so far.
The open-source nvdriver project publishes an experimental, clean-room replacement for NVIDIA's proprietary Linux kernel module. Written in #![no_std] Rust, it builds as nvidia_rs.ko and claims compatibility with existing NVIDIA userspace, allowing CUDA, PyTorch, cuDNN, NCCL, llama.cpp, and nvidia-smi to run without modification. The resulting stack remains partly proprietary because it retains NVIDIA's userspace binaries.
NVIDIA publishes official open GPU kernel modules for Turing and newer architectures. nvdriver adds claimed coverage back to Maxwell, including Pascal and Volta hardware, while removing product restrictions enforced by the vendor driver.
Policy gates come off
The project says its replacement removes chipset and product-tier checks that restrict features on consumer and older data-center GPUs. Its claimed capabilities include:
- PCIe and BAR1 peer-to-peer access, including optional PCIe P2P atomics
- Resizable BAR1 enabled by default
- GPUDirect RDMA
- Unrestricted NVENC sessions and telemetry
- vGPU and SR-IOV without CPUID checks or GRID licensing timers
BAR1 maps GPU memory into the PCIe address space, while Resizable BAR can expand the amount visible to the host and peer devices. P2P allows GPUs to access each other's memory directly, which NCCL uses for multi-GPU communication. GPUDirect RDMA extends direct memory access to capable network and storage devices.
V100 crosses 1 TB/s
The repository's strongest performance claims concern the Tesla V100 and its GV100 processor. nvdriver raises the HBM2 clock from the stock 877.5 MHz cap to 1080 MHz, with dynamic P0 boost settings of 1425 MHz for the graphics processing cluster and 1320 MHz for the crossbar. The implementation includes per-partition clock-lock checks, a thermal guard running at 1 Hz, automatic rollback after detected errors, and restoration of stock settings when the module unloads.
The repository credits earlier hardware research by arikamidotnet and the FBR-ROM/FBR-RAM-Downloader project for the memory-clock work.
The reported comparison used the same physical V100-SXM2-32GB passed through to identically configured VFIO virtual machines. One VM ran NVIDIA driver 580.178.04; the other ran nvdriver.
| Test | NVIDIA 580.178.04 | nvdriver | Change |
|---|---|---|---|
| PyTorch STREAM Triad | 821.85 GB/s | 1,019.51 GB/s | +24.1% |
| HBM2 device-to-device copy | 819 GB/s | 995 GB/s | +21.6% |
| FP16 tensor-core GEMM, 8192 cubed | 97.69 TFLOPS | 106.83 TFLOPS | +9.4% |
| llama.cpp prompt evaluation, pp512 | 31,067 tok/s | 34,282 tok/s | +10.3% |
| Transformer forward and backward pass | Values unpublished | Values unpublished | +2.3% |
| PCIe pinned H2D and D2H | Values unpublished | Values unpublished | Unchanged |
The benchmark pattern points to increased memory bandwidth as the main source of the gains. Bandwidth-bound stages such as attention, layer normalization, elementwise fusion, and KV-cache reads should benefit more than workloads dominated by arithmetic throughput or PCIe transfers.
Rust core, NVIDIA user space
The driver core uses Rust without the standard library because kernel modules lack a userspace runtime. A minimal C shim handles Linux interfaces for PCI devices, character devices, DMA, and memory mapping.
The author reports a 10-out-of-10 kernel ABI audit with no GOT relocations, SIMD or x87 instructions, memory-function calls, or unwind sections. Reported stack frames remain at or below 1,024 bytes. These constraints reduce common sources of kernel-module failures, including unsupported instructions, runtime dependencies, and excessive kernel-stack use.
Stock companion modules connect through CONFIG_MODVERSIONS bridges, which expose the versioned kernel symbols expected by precompiled modules. A 76-symbol bridge supports nvidia-uvm.ko, while another exports nvidia_get_rm_ops for nvidia-modeset.ko and nvidia-drm.ko. The project says these modules load unchanged against the Rust core.
Volta has the hardware data
Physical validation currently covers eight Tesla V100-SXM2-32GB cards with 256 GiB of aggregate VRAM. The project reports 77 of 77 passing CUDA Parity Suite checks with no output differences against NVIDIA 580.178.04, plus successful runs of:
- Eight-GPU PyTorch training with cuDNN and NCCL DistributedDataParallel
- Eight-GPU llama.cpp inference
- Eight-by-eight all-to-all PCIe P2P transfers
- H.264 and HEVC encoding and decoding
- S3 suspend and S4 hibernation
- Fault recovery and clean module unloading
| Architecture | Validation level | Current evidence |
|---|---|---|
| Maxwell and Pascal | Offline only | Implemented paths checked with emulator oracles |
| Volta GV100 | Physical hardware | Eight V100-SXM2-32GB GPUs |
| Turing through Rubin | Offline only | GSP-RM and Display HAL paths checked with emulator oracles |
| Tegra | Out of scope | Jetson Orin and Thor are unsupported |
Offline verification can check register sequences and protocol behavior, but physical timing, power management, firmware interaction, and board-specific behavior remain untested on non-Volta hardware. Display-attached GPUs also lack physical validation. The current implementation targets discrete PCIe GPUs on x86-64 systems.
Parameters with hardware consequences
The built module installs as nvidia_rs.ko. The supplied ./install.sh script includes Machine Owner Key signing for Secure Boot systems, while persistent module parameters can be placed in /etc/modprobe.d/nvidia_rs.conf.
| Parameter | Purpose |
|---|---|
v100_hbm_ndiv=80 |
Applies the reported V100 HBM2 overclock |
force_p2p=0x11 |
Enables PCIe P2P reads and writes |
enable_resizable_bar=1 |
Enables Resizable BAR1 |
gsp_abi=620 |
Selects GSP-RM framing version 620; version 580 remains available for backward compatibility |
The published performance and parity data use NVIDIA userspace and companion modules from release 580.178.04. Other NVIDIA branches, Linux kernels, and module combinations require separate validation because the design depends on kernel ABI and symbol-version compatibility.
Best fit: controlled V100 rigs
Secondhand V100 systems are the clearest current target because they have both physical validation and measured performance data. Multi-GPU inference, bandwidth-heavy CUDA workloads, P2P communication, and unrestricted NVENC are the project's primary use cases.
Pascal cards such as the P100, consumer GPUs, mixed-architecture systems, and display-connected machines remain testing candidates. The author is seeking contributors with broader hardware access, particularly for mixed-GPU P2P validation.
Rollback has limits
Changing HBM clocks, enabling undocumented data paths, and loading an out-of-tree kernel module can cause hangs, data corruption, thermal stress, or permanent hardware damage. These changes may also conflict with vendor support, warranty, or licensing terms. Removing a GRID licensing timer does not grant rights to NVIDIA's licensed vGPU software.
Automatic rollback covers detected clock-lock and runtime errors, but it cannot eliminate every failure mode. Initial testing should use stock clocks, non-production hardware, recoverable storage, and local console access before enabling the HBM or virtualization overrides.