Quick Answer: nvdriver is a clean-room, open-source Rust Linux kernel module (
nvidia_rs.ko) that aims to replace NVIDIA's proprietary kernel driver. It is designed to run unmodified CUDA, PyTorch, andnvidia-smi. Its headline claims are faster HBM2 memory on Tesla V100 cards, unlocked peer-to-peer (P2P) access, and performance close to NVIDIA's 580.178.04 driver on the workloads the author tested.
A Linux GPU driver written from scratch in Rust, with no copied NVIDIA code, and claiming to remove NVIDIA's own software restrictions would have sounded unlikely a few years ago. Yet the nvdriver project on GitHub does exactly that, and it's gotten attention on Hacker News. If you run GPU servers, or you own older Volta-class cards, the question isn't whether the idea is interesting. It's whether the numbers hold up and what you'd be risking by trying it.
What nvdriver Is (and What It Isn't)
The project ships as nvidia_rs.ko, a #![no_std] Rust core linked into a small Linux C shim. Its goal is to be a drop-in replacement for NVIDIA's closed kernel modules, while still loading the stock companion modules (nvidia-uvm.ko, nvidia-modeset.ko, nvidia-drm.ko) through matching CONFIG_MODVERSIONS bridges.
The key design choice is the userspace boundary. Your existing libcuda.so, libnvidia-ml.so, and nvidia-smi stay as they are. That's why the project can claim compatibility with PyTorch, cuDNN, NCCL, and llama.cpp without asking you to rebuild anything.
Here's the nuance most summaries skip: "drop-in" describes the interface, not the support status. The README says only Volta (GV100) has been verified on physical silicon, on eight Tesla V100-SXM2-32GB cards. Maxwell and Pascal are "awaiting physical silicon test," and Turing through Rubin are "verified offline." Treat the broader GPU list as a roadmap until you see your exact card tested.
The Tesla V100 Memory Bandwidth Claim
The most concrete claim is about Tesla V100 HBM2 memory clocks. According to the README, nvdriver raises the GV100 memory clock from the stock 877.5 MHz to 1107 MHz, which is the V100S factory spec. The project reports this as +26.2% bandwidth, roughly 1,041.7 GB/s per card and 8.33 TB/s across eight V100s.
The arithmetic checks out: 1107 ÷ 877.5 is about 1.262. The more useful question is what the clock change does in practice. Most readers assume a higher core clock is what matters for AI training. For these workloads, the data suggests otherwise.
Where the Gains Show Up, and Where They Don't
Here's the comparison the README publishes, run on the same hardware under the proprietary 580.178.04 driver and under nvdriver with default settings:
| Benchmark (V100-SXM2-32GB) | Proprietary 580.178.04 | nvdriver (default) | Delta |
|---|---|---|---|
| PyTorch STREAM Triad (768 MiB) | 821.85 GB/s | 1,041.72 GB/s | +26.8% |
| FP16 Tensor Core GEMM (8192³) | 97.69 TFLOPS | 107.17 TFLOPS | +9.7% |
| FP32 GEMM (8192³) | 14.18 TFLOPS | 14.37 TFLOPS | +1.3% |
llama.cpp prompt eval (pp512) | 31,067 tok/s | 34,884 tok/s | +12.3% |
| PCIe pinned H2D / D2H (256 MiB) | 12.39 / 13.16 GB/s | 12.40 / 13.16 GB/s | Parity |
Here's the counter-intuitive part. The conventional wisdom is that compute throughput is what separates GPUs. In this comparison, the FP32 compute gain is only +1.3%, while the memory-bandwidth gain is +26.8%. The lesson is that memory-bound kernels (elementwise ops, normalization, attention with large KV caches, and token generation in llama.cpp) benefit far more than arithmetic-dense GEMMs. If your workload is compute-bound, don't expect a 26% speedup.
That said, the README's own numbers have limits you should keep in mind. These are single-vendor, self-reported benchmarks on one lab configuration. The project doesn't publish raw logs or an independent reproduction, so treat the table as a strong claim that needs your own measurements.
Unlocks, P2P, and Resizable BAR: Useful, but Read the Fine Print
The README lists several features it says NVIDIA's closed driver restricts. These include PCIe and dynamic BAR1 P2P, Resizable BAR enabled by default, GPUDirect RDMA through native dma-buf and P2PDMA, and unrestricted NVENC sessions. Each comes with a registry or module option. For example, dyn_bar1_p2p=1 sets RMDynBar1P2PEnable=1 and related GSP-RM keys.
The practical value depends on your topology. P2P matters when GPUs exchange tensors directly, such as in NCCL AllReduce across an NVLink or PCIe fabric. The README reports 59.71 GB/s BusBW on an eight-GPU AllReduce with FP16 at 256 MiB, with max_err = 0.0. That's a strong result, and it's one you can reproduce with nccl-tests on your own hardware before you rely on it.
Now the caveat. Some of these claims rest on the premise that NVIDIA's software gates are illegitimate. That's a legal and licensing question, not a technical one. Clean-room engineering reduces copyright risk for the code itself, but it doesn't change your obligations under NVIDIA's EULA or your organization's procurement terms. Check those before deploying anything, especially in a vGPU or cloud-provider context. This isn't legal advice, but ignoring it would be a mistake.
Running It Safely: Risks, Defaults, and a Test Plan
You shouldn't start on production. Here's the sequence a careful operator would follow.
- Build on a spare node, not a live one. The README's validation path is
sh tools/validate_all.sh, which buildsnvidia_rs.koand runs its gate. - Confirm kernel headers match your running kernel at
/lib/modules/$(uname -r)/build. - Record a baseline with the proprietary driver: STREAM-style bandwidth, a GEMM, and your real workload.
- Load nvdriver, then rerun the same tests and compare.
- Watch thermals and power during sustained runs, not just short benchmarks.
Several parameters deserve specific attention. v100_hbm_ndiv=82 is the default that produces the 1107 MHz memory clock. Setting it to 0 restores the stock 877.5 MHz, which is the fallback if memory errors appear. v100_p0_volt_uv=0 is marked experimental and is the setting most likely to cause instability if you change it. disable_ecc=0 is opt-in, and it's safer to leave ECC enabled unless you have a specific reason to change it.
There's also a real failure mode to plan for. Overclocked HBM2 can produce silent corruption before it produces a crash. That's why the README's "0.0 max_err" results matter, and why you should run your own numerical checks, not just throughput benchmarks. Run a known-answer test on your model's outputs before and after any clock change.
Frequently Asked Questions
What is nvdriver?
nvdriver is an open-source Linux kernel driver for NVIDIA GPUs, written in #![no_std] Rust. It builds as nvidia_rs.ko and is designed to work with unmodified NVIDIA userspace, including CUDA, nvidia-smi, and PyTorch. The project states it's clean-room, meaning it doesn't reproduce NVIDIA's proprietary code.
Is an open-source Nvidia kernel driver safe for production?
Not yet, for most people. Only Volta (GV100) has physical hardware verification in the README. Other architectures are marked as awaiting silicon testing. Run it on a non-critical node first, validate your numerical results, and confirm your licensing terms allow it.
How does nvdriver compare to the proprietary driver?
On the README's Tesla V100 benchmarks, nvdriver is faster on memory-bound workloads (+26.8% on STREAM Triad) and only slightly faster on FP32 GEMM (+1.3%). PCIe transfer speeds are essentially identical. These are self-reported results on one configuration, so reproduce them on your hardware before relying on them.
Does nvdriver work with unmodified CUDA and PyTorch?
That's the design goal. nvdriver is meant to load beneath your existing libcuda.so and PyTorch installation without changes. The README reports passing a 77-check CUDA parity suite and multi-GPU PyTorch and NCCL tests. Confirm your exact driver-userspace pairing before assuming compatibility.
How do I test nvdriver without risking my main GPU?
Use a spare machine with a single card. Record baseline numbers with the proprietary driver, build with tools/validate_all.sh, and rerun the same tests. Keep v100_hbm_ndiv=0 ready to restore stock clocks if you see errors.
Bottom Line: Test It Before You Trust It
The most useful takeaway is this: a faster memory clock helps memory-bound AI workloads far more than it helps raw compute, so measure your own bottleneck first. Keep the proprietary baseline, validate numerical output, and check your licensing before deployment. If you have a spare Tesla V100 or Volta-class card, run a STREAM-style bandwidth test and your real model before and after loading nvdriver, then note the result. Pass this to whoever is wrestling with GPU bandwidth limits on a Linux box, because the answer might be a single module parameter rather than new hardware.