Architect Chen
Architect Chen
Nov 6, 2025 · Backend Development

Boost Nginx Performance 10×: Auto CPU Affinity, Epoll, and Zero‑Copy Tweaks

This guide explains how to unleash Nginx's full potential on multi‑core Linux servers by configuring automatic CPU affinity, increasing worker connections with epoll, raising system file limits, and enabling zero‑copy transmission, resulting in up to ten‑fold throughput gains and dramatically lower CPU usage.

Optimizationepollzero-copy
0 likes · 4 min read
Boost Nginx Performance 10×: Auto CPU Affinity, Epoll, and Zero‑Copy Tweaks
Tech Musings
Tech Musings
Nov 4, 2025 · Backend Development

Simplifying a Four‑Layer TCP Proxy in Go: From Custom Goroutine Loops to io.Copy

The article recounts the original complex implementation of a four‑layer TCP proxy in Easegress, explains why using separate read/write goroutines and custom buffers caused error‑handling and flow‑control difficulties, and then shows how switching to Go's io.Copy (and its variants) dramatically simplifies the code while preserving performance through zero‑copy techniques.

GoTCPio.Copy
0 likes · 17 min read
Simplifying a Four‑Layer TCP Proxy in Go: From Custom Goroutine Loops to io.Copy
Deepin Linux
Deepin Linux
Jul 7, 2025 · Fundamentals

What Happens to mmap-Mapped Files When a Program Crashes? A Deep Dive into Linux Memory Mapping

This article explains the fundamentals of the mmap system call, its internal working mechanism, zero‑copy I/O model, advantages, typical use cases, and detailed usage guidelines—including function prototypes, parameter meanings, mapping steps, and sample code—while also exploring how mmap‑mapped files behave during program crashes.

File I/OLinuxSystem Programming
0 likes · 29 min read
What Happens to mmap-Mapped Files When a Program Crashes? A Deep Dive into Linux Memory Mapping
Deepin Linux
Deepin Linux
Jan 23, 2025 · Backend Development

Zero‑Copy Techniques in Linux: sendfile, mmap, splice and tee

This article explains the concept of zero‑copy in Linux, compares the four main system calls—sendfile, mmap, splice and tee—describes their APIs, internal mechanisms, performance characteristics, typical use‑cases and provides practical code examples for high‑performance network programming.

LinuxTEEmmap
0 likes · 37 min read
Zero‑Copy Techniques in Linux: sendfile, mmap, splice and tee
Deepin Linux
Deepin Linux
Dec 17, 2024 · Fundamentals

Efficient Memory Sharing with mmap and Zero‑Copy Techniques

This article explains how mmap and zero‑copy mechanisms, combined with DMA and shared‑memory APIs, can dramatically reduce CPU involvement, context switches, and data copies during file and network I/O, thereby improving system performance for high‑throughput applications.

DMAPerformance optimizationShared Memory
0 likes · 33 min read
Efficient Memory Sharing with mmap and Zero‑Copy Techniques
Deepin Linux
Deepin Linux
Dec 12, 2024 · Backend Development

Understanding Zero‑Copy Architecture: Concepts, Techniques, and Applications

Zero‑copy eliminates CPU‑mediated data copies between user and kernel spaces by using DMA and memory‑mapping, dramatically improving I/O performance, reducing context switches, and enabling high‑throughput applications such as file servers, Kafka brokers, and Java networking frameworks.

DMAI/O optimizationJava
0 likes · 28 min read
Understanding Zero‑Copy Architecture: Concepts, Techniques, and Applications
Su San Talks Tech
Su San Talks Tech
Sep 2, 2024 · Fundamentals

Why Zero-Copy Supercharges RocketMQ & Kafka: mmap, sendfile, DMA

Zero‑copy techniques such as mmap + write, sendfile, and sendfile + DMA scatter/gather reduce CPU‑memory copies and context switches compared with traditional read/write IO, improving performance for high‑throughput systems like RocketMQ and Kafka, while explaining user‑kernel mode, DMA, and their trade‑offs.

DMAIO performanceLinux
0 likes · 11 min read
Why Zero-Copy Supercharges RocketMQ & Kafka: mmap, sendfile, DMA
Su San Talks Tech
Su San Talks Tech
Mar 19, 2024 · Backend Development

Cut Page Load Time from 5 s to <1 s: Java IO, NIO, mmap & Zero‑Copy Tricks

This article explains why a Java page took five seconds to load, identifies three bottlenecks involving large BLOB fields and file I/O, and walks through four optimization steps—including lazy loading, buffered streams, memory‑mapped files, and sendFile zero‑copy—that reduce the load time to under one second.

IO performanceJavaNIO
0 likes · 17 min read
Cut Page Load Time from 5 s to <1 s: Java IO, NIO, mmap & Zero‑Copy Tricks
Liangxu Linux
Liangxu Linux
Aug 9, 2023 · Fundamentals

How Zero‑Copy and PageCache Supercharge File Transfer Performance

This article explains why a naïve 32 KB‑chunk file transfer incurs excessive context switches and memory copies, and how zero‑copy, PageCache, asynchronous I/O, and direct I/O techniques dramatically reduce overhead and boost throughput for large‑scale data transfers.

Direct I/OPerformance optimizationasync I/O
0 likes · 11 min read
How Zero‑Copy and PageCache Supercharge File Transfer Performance
Architect
Architect
Sep 13, 2022 · Backend Development

Understanding Zero‑Copy in Java I/O, NIO, Netty and Messaging Systems

This article explains the concept of zero‑copy, its benefits for I/O performance, and how Java NIO, Netty, Kafka, RocketMQ and related APIs such as mmap+write and sendfile implement zero‑copy to avoid unnecessary data copying between kernel and user space.

I/O PerformanceJava NIOMappedByteBuffer
0 likes · 13 min read
Understanding Zero‑Copy in Java I/O, NIO, Netty and Messaging Systems
Su San Talks Tech
Su San Talks Tech
Jan 7, 2022 · Big Data

Unlock Kafka’s Speed: Deep Dive into Performance Optimizations

This article explores Kafka’s performance architecture, covering network and disk bottlenecks, sequential writes, zero‑copy techniques, page cache usage, Reactor‑based networking, batch processing, compression, partition concurrency, and file structures, providing practical optimization methods for high‑throughput streaming applications.

JavaKafkaNetwork
0 likes · 17 min read
Unlock Kafka’s Speed: Deep Dive into Performance Optimizations