Javascript must be enabled to continue!
Three Modes of Database-Kernel Integration via eBPF: Observability, Policy Injection, and Kernel-Resident State
View through CrossRef
eBPF is increasingly used around databases, but prior systems and papers often conflate goals and therefore blur the trade space: instrumentation versus control versus in-kernel state. This impedes principled comparisons and hides the kernel constraints that determine feasibility. We present a unified analysis organized into three modes of database–kernel integration via eBPF: observability (deriving DB-relevant signals from kernel and user-space hooks), policy injection (installing workload-specific cache and networking policies at kernel choke points), and kernel-resident state (providing safe transactional state semantics for eBPF programs beyond raw maps). For each mode, we characterized the hook placement, state model, and verifier/synchronization/portability constraints that shape feasibility, and then analyzed representative systems (programmable page-cache policies, XDP ingress offload, and ACID key-value with WAL export) against this framework. We show where microsecond overheads compound to core-scale costs when user-kernel crossings dominate tail latency and which integration mode fits the workload patterns. The outcome is a decision framework that guides when to measure, when to specialize the kernel policy, and when to introduce the kernel-resident state, enabling reproducible performance work without custom kernels.
Title: Three Modes of Database-Kernel Integration via eBPF: Observability, Policy Injection, and Kernel-Resident State
Description:
eBPF is increasingly used around databases, but prior systems and papers often conflate goals and therefore blur the trade space: instrumentation versus control versus in-kernel state.
This impedes principled comparisons and hides the kernel constraints that determine feasibility.
We present a unified analysis organized into three modes of database–kernel integration via eBPF: observability (deriving DB-relevant signals from kernel and user-space hooks), policy injection (installing workload-specific cache and networking policies at kernel choke points), and kernel-resident state (providing safe transactional state semantics for eBPF programs beyond raw maps).
For each mode, we characterized the hook placement, state model, and verifier/synchronization/portability constraints that shape feasibility, and then analyzed representative systems (programmable page-cache policies, XDP ingress offload, and ACID key-value with WAL export) against this framework.
We show where microsecond overheads compound to core-scale costs when user-kernel crossings dominate tail latency and which integration mode fits the workload patterns.
The outcome is a decision framework that guides when to measure, when to specialize the kernel policy, and when to introduce the kernel-resident state, enabling reproducible performance work without custom kernels.
Related Results
Improving Error Messages for eBPF Programs
Improving Error Messages for eBPF Programs
Context: eBPF is an emerging technology in cloud computing, allowing user-defined programs to run in kernel space for observability, networking, and security. To ensure system inte...
KERNEL-ACCELERATED STATELESS LOAD DISTRIBUTION ENGINE WITH EBPF
KERNEL-ACCELERATED STATELESS LOAD DISTRIBUTION ENGINE WITH EBPF
Abstract — The Kernel-Accelerated Stateless Load Distribution Engine with eBPF is a high-performance networking solution designed to meet the demands of modern cloud-native environ...
Overview of Key Zonal Water Injection Technologies in China
Overview of Key Zonal Water Injection Technologies in China
Abstract
Separated layer water injection is the important technology to realize the oilfield long-term high and stable yield. Through continuous researches and te...
KERNEL-ACCELERATED STATELESS LOAD DISTRIBUTION ENGINE WITH EBPF
KERNEL-ACCELERATED STATELESS LOAD DISTRIBUTION ENGINE WITH EBPF
The Kernel-Accelerated Stateless Load Distribution Engine with eBPF is a high-performance networking solution designed to meet the demands of modern cloud-native environments requi...
Piece by piece: Collaborative mosaic-making for inclusive policy development
Piece by piece: Collaborative mosaic-making for inclusive policy development
This report sets out the findings from one of four projects commissioned by Wellcome Policy Lab to pilot creative approaches to policy development. In this project, Scientia Script...
Responsibilised Resilience? Reworking Neoliberal Social Policy Texts
Responsibilised Resilience? Reworking Neoliberal Social Policy Texts
Introduction This essay begins with the premise that resilience, broadly defined as positive adaptation despite adversity (Garmezy and Rutter), and resilience building are importa...
Détection d'anomalies de latence dans les systèmes distribués avec eBPF
Détection d'anomalies de latence dans les systèmes distribués avec eBPF
Le Cloud Computing est en plein essor pour répondre à une demande croissante de puissance de calcul dans l'industrie, tout en conservant des coûts modérés. Les technologies émergen...
Online Kernel Selection: Algorithms and Evaluations
Online Kernel Selection: Algorithms and Evaluations
Kernel methods have been successfully applied to many machine learning problems. Nevertheless, since the performance of kernel methods depends heavily on the type of kernels being ...

