← Lab /Systems

Kops adds native eBPF ops, boosting microbenchmarks up to 24% and apps up to 12%

Kops safely extends the eBPF compilation pipeline with native operations that improve performance

Systems arXiv 23 Jun 2026 Method Prototype evidence

Published as “Kops: Safely Extending the eBPF Compilation Pipeline with Native Operations”

Why it matters

Kops enables noticeable eBPF performance improvements without expanding the kernel’s trusted computing base, making faster networking, observability, and security programs feasible in production.

Summary

Kops adds a small kernel extension that lets userspace compilers emit native instructions for selected hardware idioms while keeping the existing eBPF verifier unchanged, and it speeds up eBPF microbenchmarks by up to 24% on x86-64 and 22% on ARM64, recovers up to 42% of the performance gap to native code, and improves production application throughput by up to 12%; the evidence comes from 27 microbenchmarks and production case studies, showing a solid but partial performance gain.

What they found 1

  1. EInsn speeds up eBPF microbenchmarks and recovers a large portion of the native performance gap.

    “EInsn speeds up eBPF microbenchmarks by up to 24% on x86-64 and 22% on ARM64 over the unmodified pipeline, recovering up to 42% of the gap to native code, and improves production application throughput by up to 12%.”

Caveats 2

  • The mechanism only recovers up to 42% of the eBPF-native performance gap, leaving a substantial residual loss.
  • Whole-program native replacement can reach 2.358× speedup on Cilium, but it requires trusting the application’s native code (§7.4).

What’s new here 4

  • Provides an extension interface (Kops) that allows new operations with a proof sequence and a native emit without modifying the kernel core.
  • Keeps the verifier as the sole safety gate, adding only a small generic patch to the kernel.
  • Formally proves equivalence of each native emit to its proof sequence using Lean 4.
  • Enables shipping new operations as loadable kernel modules.