Monday, November 15, 2004

NAPI.

These are interesting notes about NAPI. In short, the idea is, as far as receiving packets is concerned:
  1. To generate interupts when a first packet arrives
  2. To disable interupts for the device
  3. To let softirqs poll for remaining packets.
  4. Only when the kernel is done with a set of packets are interupts enabled again for the device.
Now packets can be silently droped. Device attribution is on a per CPU basis and mutually exclusive.
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

Home