3 ms·
Localizing packet processing significantly improves cache performance, in addition to avoiding copies and context switches. Receiving data from a socket almost
by hosay123 14y ago
Localizing packet processing significantly improves cache performance, in addition to avoiding copies and context switches. Receiving data from a socket almost always necessitates it being copied from a SKB to userspace memory, and prior to that from the driver's rx ring to a SKB. Grep for all references to 'cache' in http://lwn.net/Articles/169961/ http://lwn.net/Articles/169961/ which is Van Jacobsen's earlier work on a system of comparable design. Another (insanely more complex) implementation is http://www.openonload.org/ http://www.openonload.org/
- justincormack 14y agoAh thanks for that, hadn't realised that was a use case too, only started looking at this stuff the other day...