10 Gbit/s on an old Mellanox ConnectX-3: the driver, the bugs, and what's next
How we wrote a Rust ConnectX-3 driver for nos, got UDP close to line rate, dealt with firmware, queues and MSI-X, and why TCP and NBS still have room to improve.
Stories from building nos: real bugs on real hardware, the hypervisor, Rust in the kernel, and the tests that keep us honest.
RSS feedHow we wrote a Rust ConnectX-3 driver for nos, got UDP close to line rate, dealt with firmware, queues and MSI-X, and why TCP and NBS still have room to improve.
How Windows Server 2022 went from a UEFI shell and failed VM entries to SAC, networking, save/restore and a measured 61% reduction in idle VM exits.
A Linux VM on nos's hypervisor now drives a real NVIDIA GPU with NVIDIA's own driver and runs CUDA at full speed. How it works, what broke on the way, and what's missing.
We brought nos up on a Supermicro with two Xeons and 256 GB of RAM and taught it that memory on the other socket is slower. How the kernel finds out where its memory is, what it does about it, what we measured, and what is still missing.
A running VM in a nos cluster can now move to another host without stopping. How its memory is copied while the guest keeps writing to it, how two hosts agree on which of them runs it, what happens to its network and its CPU, how we tested it, and what it can't do yet.
nos now keeps a VM's disk on three hosts at once. How NBS cuts a volume into chunks, what Raft keeps and what it doesn't, what happens when a host dies, and how to use it from the panel and the shell.
VMs on different hosts of a nos cluster can now share private networks. How vnet keeps its state, how packets cross between servers in a sealed UDP tunnel, public addresses, firewalls, what happens when a host fails, and how to use it.
We ran one Ubuntu VM under KVM and under nos on the same server. The disk started at 1% of KVM's speed. Four days later most numbers match KVM or beat it.
New nos installs get ext4, written through its own journal: names and data, freed at scale through the orphan list, every checksum checked on every read. How it is built from three readings of one format that share no code, how it is held to e2fsck and Linux, and what the first real server and a review turned up.
nos has a web panel now, and none of it is in the kernel. The kernel serves a host API over mutual TLS; the panel is a Next.js application in a Debian VM the host makes for itself. How the two fit together, and the two problems the first run on a real server turned up.
nos's scheduler was a round robin that walked every task and kept a woken one waiting a tick behind each busy task. The new one is EEVDF, with weights, slices and lag: the same wakeup now takes microseconds.
hv create takes a cloud image's URL and makes a VM of it with nothing but nos: the kernel's own HTTPS download, a qcow2 converter with its own DEFLATE decoder, a cloud-init seed, and a folder that outlives a reboot.
Posted interrupts, a one-shot timer, receive interrupt moderation, offloads and mapped rings, measured on bare metal, and two ideas that did not help.
Task::Wait, the join every stop in nos makes, used to wait forever in silence. Now it reports who waits, for which task, and where that task is.
How the nos hypervisor contains a guest's speculation at every VM exit (cleared registers, RSB refill, IBPB, IBRS, BHI_DIS_S, VERW), its cost and what is open.
Stage 3 as told by git log: in a month hv.ko went from switching AMD-V on to booting Alpine, Debian and multi-CPU Linux guests on AMD and Intel hardware.
On QEMU 10.2's TCG, a guest's CR4 reads never exit, and a data watchpoint in a nested guest hangs the CPU for good. How we found both and how the gates cope.
Four fuzzers build the kernel's own code into ordinary host programs: hypervisor, network, storage and C++. How they work and the bugs they found.
In two days we moved nos's block, network and filesystem layers and virtio to Rust, deleted the C++, and cut the layers' unsafe from 924 sites to 113.
nos never runs .init_array, so a global with a real constructor stays all zeroes. Two locks slipped past the watchdog that way. Now the link refuses them.
The Dell Latitude has no serial port and no PS/2. How nos got a pixel console and a USB keyboard there, a test that types at it, and a port to Rust.
No page in nos can be both written and executed. How we split the kernel image, found a hole under every runtime mapping, and keep it shut with a test.
netblk serves an NVMe disk over UDP, and the disk DMAs straight into the frame the NIC sends. How the data moves, and the two lost ticks the numbers exposed.
In September 2026 poweroff did nothing, hung or faulted. The last two bugs: a CPU that woke from its final halt, and a heap that unmapped live objects.
Two of nos's servers have no console but the network. So the kernel got an SSH server: a loadable Rust module, tested against OpenSSH's own client.
A kernel died before it could say a word, on a server whose only console is the network. Two counters on its disks and a QEMU replica showed why.
What it took for wget https:// to work in nos: rustls without std, a transport trait, a root store and the RTC, an entropy pool, and no SSE.
The AX41's Intel I210 showed the link up, the receiver on and 255 descriptors posted, yet received nothing. Its MAC had latched 10 Mb/s; the PHY ran at 1000.
Under UDP load, the EX44 stopped receiving for good. Seven theories based on the driver's code were wrong. Reading the chip itself found a lost MSI-X edge.
A TLB shootdown waited for a CPU that was spinning on a lock the sender held. How one silent hang became a rule, a frame pool, a gate and a 10-second panic.
A wrong memory barrier compiles to nothing on x86 and is a real bug on arm64. What a full review of the nos arm64 port found after every smoke test passed.