All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding TCP Zero-Copy: How Linux Kernel Eliminates Data Copying Overhead

By

mfrw

3mo ago· 9 min readen

Summary

This article explains TCP zero-copy, a Linux kernel feature that eliminates extra data copying between kernel memory and userspace buffers during network data transmission. The post details how this technology works under the hood, covering the kernel mechanisms that enable zero-copy operations, the performance benefits of avoiding data copying overhead, and practical implementation considerations for developers working with network programming.

Key quotes

· 4 pulled
TCP zero-copy is a feature of the Linux kernel that makes it possible to send and receive data without incurring an extra copy between kernel memory and the memory buffer that holds the final data
Copying data adds overhead, so avoiding it is appealing
The kernel features that enable this are quite new, and figuring out exactly how they work under the hood is not trivial
So in this post I'll try to summarise what exactly is going on under the hood when these features are used
Snippet from the RSS feed
TCP zero-copy is a feature of the Linux kernel that makes it possible to send and receive data without incurring an extra copy between kernel memory and the memory buffer that holds the final data (in userspace, or even in the memory of a different device

You might also wanna read

Restartable Sequences: A Linux Kernel Feature for Lock-Free Thread-Safe Programming

This article explores restartable sequences (rseq), a Linux kernel feature introduced in version 4.18 (circa 2018) that enables creation of

justine.lol·10h ago

Linux kernel patch proposes per-function "killswitch" for runtime short-circuit mitigation

A Linux kernel patch proposal by Sasha Levin introduces a "killswitch" mechanism — a per-function short-circuit mitigation primitive designe

lwn.net·22d ago

Four stable Linux kernels released with partial fixes for Dirty Frag and Copy Fail 2 vulnerabilities

Greg Kroah-Hartman has released four stable Linux kernels (7.0.5, 6.18.28, 6.12.87, and 6.6.138) containing partial fixes for the Dirty Frag

lwn.net·23d ago

Copy Fail: Critical Linux Kernel Vulnerability (CVE-2026-31431) Grants Root Access Across Major Distributions

Xint Code disclosed CVE-2026-31431, a critical Linux kernel vulnerability dubbed "Copy Fail." The bug exploits an authencesn scratch-write v

xint.io·1mo ago

Linux Kernel Developers Propose Removing Legacy Code in Response to LLM-Generated Security Reports

The article discusses ongoing efforts to remove legacy kernel code from the Linux kernel, primarily from the networking subsystem, as a resp

lwn.net·1mo ago

Sashiko: Agentic Linux Kernel Code Review System for Automated Patch Evaluation

Sashiko is an agentic Linux kernel code review system that monitors public mailing lists to evaluate proposed Linux kernel changes. Named af

sashiko.dev·2mo ago