A11 — The Memory Boundary Between User and Kernel: Zero-Copy Technology

dean
A11 — The Memory Boundary Between User and Kernel: Zero-Copy Technology Key Insight: The fastest path from disk to network is to not copy at all. Memory Boundary Between User Mode and Kernel Mode User programs and the kernel have separate address spaces. Interaction requires system calls or specific mechanisms. 用户态和内核态的隔离: 用户地址空间(0x00000000 ~ 0x7FFFFFFFFFFF): -... » read more

A03 — Multi-threaded malloc: Arena Contention and Per-thread Arena

dean
A03 — Multi-threaded malloc: Arena Contention and Per-thread Arena Key Insight: In multi-threaded scenarios, every malloc is a potential contention point. ptmalloc uses arenas to solve this problem. The Problem with Multi-threaded malloc In single-threaded programs, malloc contention is rare (only one heap). But in multi-threaded programs, all threads share the same heap. Without special... » read more