Expand description
Zero-Copy Networking
Eliminates memory copies in the network stack for maximum throughput.
§Zero-Copy Techniques
- DMA Buffers: Direct memory access from network card
- Scatter-Gather I/O: Compose packets from multiple buffers
- Page Remapping: Transfer ownership instead of copying data
- sendfile(): Kernel-to-kernel transfer bypassing user space
- TCP_CORK: Batch small writes into single packet
- Memory Mapping: mmap() network buffers to user space
- TcpZeroCopySend: Combined scatter-gather + TCP segmentation
Structs§
- DmaBuffer
- DMA-capable buffer
- DmaBuffer
Pool - DMA buffer pool for zero-copy operations
- DmaPool
Stats - Scatter
Gather List - Scatter-gather list for zero-copy I/O
- Scatter
Gather Segment - Send
File - Kernel-to-kernel transfer (sendfile equivalent)
- TcpCork
- TCP Cork (batch small writes into single packet)
- TcpZero
Copy Send - TCP zero-copy send combining scatter-gather with TCP segmentation.
- Zero
Copy Send - Zero-copy send operation using scatter-gather DMA.
- Zero
Copy Stats - Statistics for zero-copy operations