eunomia-bpf/ebpfos
System ToolsResearch prototype that compiles Linux kernel C functions into verifiable eBPF components and swaps them per process or cgroup at runtime.
What it does
eBPFOS is a research prototype that compiles the C functions of a pinned Linux 7.1.8 kernel into eBPF programs, groups them into components, and lets the running kernel select a different version of a component for one machine, process tree, cgroup, object, or even individual requests. The goal is to let one machine serve differently optimized kernels per workload instead of sharing a single kernel image eBPFOS.
Each component is checked by the in-kernel eBPF verifier and JIT at build time; the boot image carries the results, so ordinary kernel paths run the compiled code without re-checking. Components record whether they passed verification (a "verified" tier) or ran with checks skipped (a "trusted" tier). Detaching a publication rolls back the earlier selection. The design document and a Lean model of the update system are in the repository, and the repository reports four proved guarantees for these updates design Lean proofs.
Quick start
The release bundle supplies prebuilt kernels and a guest userspace, so the host only needs x86-64 Linux, Python 3.12+, LLVM 18 (clang-18, opt-18), QEMU and /dev/kvm.
git clone --depth 1 --filter=blob:none --sparse https://github.com/eunomia-bpf/ebpfos.git
cd ebpfos
git sparse-checkout set configs runtime tools examples
python3 -m venv .venv && . .venv/bin/activate
python3 -m pip install -e .
export BUNDLE="$HOME/.local/share/ebpfos/bundle"
ebpfos --bundle "$BUNDLE" fetch # release v0.1.0 bundle, 1.6 GB
cd examples/hello
ebpfos --bundle "$BUNDLE" component build syscall.c:__x64_sys_getpgid --catalog catalog.json --out syscall.component
ebpfos --bundle "$BUNDLE" vm --image aot --command 'python3 run.py'
The hello example changes getpgid(0) to 63001 for a worker inside one cgroup; the worker observes 0 → 63001 → 0 across publication and rollback, while a peer outside the cgroup keeps seeing 0 on the same kernel hello example. The release page also offers standalone kernel images that boot directly in QEMU releases. More runnable components, including Redis request handling, BBR-by-port and PostgreSQL wakeup tuning, are listed in the examples directory examples.
Reported results
The repository records runs on 4-vCPU KVM guests and links each number to its record; the full list with costs is kept in the evaluation notes paper numbers. Reported numbers include up to 14.0× throughput for BIND DNS-over-TCP, 11.6× for Unbound, and 11.0× for Apache static HTTP against native, while running all of Linux as linked eBPF costs 1.014× to 1.142× of the native build across ten alternating pairs performance record. These are the project's own measurements, not a general performance guarantee.
Constraints
- Research prototype for x86-64 only, on a pinned Linux 7.1.8; a component is built against the catalog and type information of the kernel it will run on status section.
- Verified components carry the in-kernel verifier's guarantees only under their load contracts; trusted components run with those checks recorded as skipped.
- A scope changes the selected code while kernel state remains shared, so rollback restores code selection only, not application writes.
- The quick start needs KVM virtualization and a roughly 1.6 GB release bundle; building from source adds a Docker-based developer environment and a kernel submodule developer build guide.
- GPL-2.0-only, except where a file's SPDX identifier says otherwise; the Linux submodule and other dependencies keep their own licenses LICENSE.
HotRepo's take
The project entered HotRepo's new-project list on 2026-12-04 with 126 stars and 20 stars gained in a one-hour observation window, but it has no recorded position on the all-language GitHub daily ranking. That is a very short record: it shows attention on launch day, not sustained traction, and the project's own metrics are research measurements over recorded guest runs rather than adoption data. The most concrete evidence for its claims is the combination of per-use-case experiment records, a formal model, and runnable examples, all present in the repository rather than only described.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.