NAPI.
These are interesting notes about NAPI. In short, the idea is, as far as receiving packets is concerned:
- To generate interupts when a first packet arrives
- To disable interupts for the device
- To let softirqs poll for remaining packets.
- Only when the kernel is done with a set of packets are interupts enabled again for the device.
Interestingly enough,
/proc/sys/net/core/netdev_max_backlog
can be set to specify how many packages can be polled in one softirq handler invocation. Default is 300.
The article provides a fair amount of technical details, including a sizing on the number of the thread involved as well as information on some of the call chains.
0 Comments:
Post a Comment
<< Home