hn.today

eBPFOS: Compile Linux into eBPF and make it a dynamically composable OS

github.com12 points0 comments
Screenshot of eBPFOS: Compile Linux into eBPF and make it a dynamically composable OS

eBPFOS is a research prototype that makes Linux kernel code replaceable at runtime and within selected scopes. It compiles functions from Linux 7.1.8 into eBPF programs, which the kernel verifier checks, then lets operators publish a replacement for the whole machine, a process tree, cgroup, object, or individual request. Other scopes keep their existing code, and detaching a publication restores the previous version without stopping applications; kernel state remains shared. The project reports that 91.5-91.8% of functions can be replaced and restored live, while 66-70% pass the verifier, depending on configuration. Its Lean model contains 1,704 theorems and lemmas about update guarantees. Verified and trusted components are distinguished, and the system supports running verified code views for containers.

Recorded experiments show how selective kernel changes can benefit one service without forcing the same trade-off on others. Verified fast paths reached 14 times native throughput for BIND and 11.6 times for Unbound; Redis latency improved in one test from 2.6-2.9 ms to 0.58-0.85 ms. An upstream ext4 replacement ran under load with no errors, while different services saw modest gains or slowdowns, illustrating the value of per-service selection. The system also replaced a network driver, published 12 kernel versions during PostgreSQL load without failures, and changed behavior for selected requests or processes. Running Linux as linked eBPF cost 1.014-1.142 times native performance in measured cases. These results are from 4-vCPU KVM guests; the prototype currently targets x86-64 and a pinned kernel version.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.