惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
罗磊的独立博客
量子位
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
M
MIT News - Artificial intelligence
月光博客
月光博客
IT之家
IT之家
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
D
Docker
The GitHub Blog
The GitHub Blog
B
Blog
V
Visual Studio Blog
博客园 - Franky
N
Netflix TechBlog - Medium
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
博客园 - 聂微东
U
Unit 42

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
eBPF Rewrites Linux
Lavkesh Dwivedi · 2026-06-20 · via DEV Community

Originally published on lavkesh.com


I've been following eBPF's progress and it's clear that 2021 was a breakout year. eBPF became the foundational technology for a new generation of Linux observability and networking tools, allowing safe, programmable code to run in the Linux kernel without modifying kernel source or loading kernel modules.

So what does eBPF actually do? It lets you load small programs into the Linux kernel and attach them to hooks, system calls, network events, function entry and exit points. The kernel verifies these programs before loading to ensure they can't crash the kernel or loop infinitely.

One of the key advantages of eBPF is its performance. Traditional tracing tools like ftrace or SystemTap have high overhead due to the context switches between userspace and kernel space. eBPF eliminates this overhead by running in kernel context, with near-zero overhead compared to userspace tracing. For example, I recall a project where we used eBPF to collect network metrics on a 100-node Kubernetes cluster. The eBPF program added less than 1ms of latency to packet processing, which was negligible compared to the existing iptables overhead.

Once loaded, these programs execute in kernel context with access to kernel data structures, right where events occur, and with near-zero overhead compared to userspace tracing. This capability has significant implications for tools like Cilium, which uses eBPF to implement Kubernetes network policies and service mesh without sidecar proxies.

Traditional Kubernetes networking relies on iptables rules that are evaluated sequentially for every packet. eBPF replaces iptables with kernel-bypass code paths that operate at line rate, making a significant performance difference at cluster scale. The fact that iptables doesn't scale linearly with rule count is a major limitation. For instance, on a cluster with 1000 pods and 10000 iptables rules, the evaluation time increased by a factor of 10. By contrast, eBPF-based Cilium network policies scaled linearly, with minimal performance degradation even at large scale.

Another tool that takes advantage of eBPF is Pixie, which collects telemetry from Kubernetes workloads without any application-level instrumentation. By intercepting system calls, Pixie captures HTTP, gRPC, SQL, Redis, and Kafka traffic, producing request and response traces and latency metrics for all services automatically.

For organisations that haven't instrumented their applications, Pixie provides immediate visibility with no code changes. This is a huge advantage, especially for those with complex, distributed systems. The ability to gain insight into system performance without modifying the application code is a major benefit. However, it's worth noting that Pixie relies on eBPF's ability to intercept system calls, which can be affected by kernel version and configuration.

However, running eBPF programs in kernel space comes with production considerations. While the verification step prevents crashes, a poorly written program can still produce high CPU overhead. The tooling for debugging eBPF programs is also less mature than userspace debugging, which can make troubleshooting more difficult.

Additionally, eBPF requires a recent Linux kernel, at least 5.x for the most capable features, which limits adoption in organisations running older kernels on long-support distributions. Despite these challenges, the benefits of eBPF make it an attractive technology for improving Linux observability and networking.