Posts

Showing posts with the label Zero copy

Reducing CPU overhead in network programming with zero-copy data transfer:Linux

Image
To increase WiFi throughput, it is important to minimize the amount of processing overhead involved in moving data from the WiFi chip to the application.  Zero-copy direct memory access (DMA) is one such approach. Traditionally, data packets received by the NIC are first copied into a buffer in the kernel space and then copied again into a buffer in the user space before being processed by the application. This double-copying process can result in significant CPU overhead and can limit the maximum throughput that can be achieved.    + ------------+ +------------+ Network Data | Buffer | DMA | DMA | Memory < --------------| (NIC) |--------->| (Host) |--------> Processing + ------------+ +------------+            But Zero copy DMA requires support from hardware and many chips may not support it. For example  Realtek RTL8812AU  802.11ac/a/b/g/n chip. T...