Saved in:
Bibliographic Details
Main Authors: Zhou, Kairui, Lin, Shengkai, Zhang, Wei, Zhao, Shizhen
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.27686
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911636120403968
author Zhou, Kairui
Lin, Shengkai
Zhang, Wei
Zhao, Shizhen
author_facet Zhou, Kairui
Lin, Shengkai
Zhang, Wei
Zhao, Shizhen
contents Layer-7 (L7) proxies are critical to modern cloud-native systems, yet their performance is increasingly bottlenecked by copying entire payloads across the kernel-user boundary. Existing approaches reduce this overhead but typically sacrifice compatibility with unmodified POSIX applications, introduce new APIs, or require specialized environments. We show that, under conventional OS abstractions, fully eliminating kernel-user copies while preserving standard socket semantics for unmodified proxies is fundamentally impossible. This leads to a practical insight: in common L7 workloads, proxies inspect only small metadata (e.g., HTTP headers) for routing, while forwarding the bulk payload unchanged. Based on this insight, we present Libra, an OS-level selective-copy framework that copies only metadata to the user space and retains the bulk payload in the kernel for forwarding, reducing data movement without breaking compatibility. Libra uses eBPF to identify protocol-specific metadata boundaries and coordinate selective copy and payload reuse across receive and transmit paths, all without modifying the socket API. Implemented in Linux and evaluated with unmodified Nginx and HAProxy, Libra improves plaintext throughput by up to 4.2x and reduces P99 tail latency by over 90%. With hardware-offloaded kTLS, it boosts encrypted throughput by 2.0x and cuts tail latency by 65%.
format Preprint
id arxiv_https___arxiv_org_abs_2604_27686
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Libra: Accelerating Socket I/O via Programmable Selective Data Copying
Zhou, Kairui
Lin, Shengkai
Zhang, Wei
Zhao, Shizhen
Networking and Internet Architecture
Layer-7 (L7) proxies are critical to modern cloud-native systems, yet their performance is increasingly bottlenecked by copying entire payloads across the kernel-user boundary. Existing approaches reduce this overhead but typically sacrifice compatibility with unmodified POSIX applications, introduce new APIs, or require specialized environments. We show that, under conventional OS abstractions, fully eliminating kernel-user copies while preserving standard socket semantics for unmodified proxies is fundamentally impossible. This leads to a practical insight: in common L7 workloads, proxies inspect only small metadata (e.g., HTTP headers) for routing, while forwarding the bulk payload unchanged. Based on this insight, we present Libra, an OS-level selective-copy framework that copies only metadata to the user space and retains the bulk payload in the kernel for forwarding, reducing data movement without breaking compatibility. Libra uses eBPF to identify protocol-specific metadata boundaries and coordinate selective copy and payload reuse across receive and transmit paths, all without modifying the socket API. Implemented in Linux and evaluated with unmodified Nginx and HAProxy, Libra improves plaintext throughput by up to 4.2x and reduces P99 tail latency by over 90%. With hardware-offloaded kTLS, it boosts encrypted throughput by 2.0x and cuts tail latency by 65%.
title Libra: Accelerating Socket I/O via Programmable Selective Data Copying
topic Networking and Internet Architecture
url https://arxiv.org/abs/2604.27686