Re: Dropping Packets in 2.6.17

Robert Hancock
2006-06-23T01:15:09Z

Danial Thom wrote:
>>
>> I didn't use ITR, I used NAPI.
>>
>
> If thats the case then your "system" would have
> the same problem that I'm encountering, since
> polling results in buckets of packets being
> dropped with heavy userland activity.

This is to some extent by design. If you processed all packets purely in
interrupt context, at some point you can start receiving so many packets
that you never leave interrupt context to perform any other useful work,
no matter if your adapter can avoid generating an interrupt for every
packet. Packet floods can completely hang the machine. Pushing the work
into a softirq and disabling NIC interrupts in the interim allows the
machine to continue performing other useful work.

If you want to give more priority to processing network packets at the
expense of user processes then you likely need to increase the priority
of the ksoftirqd thread(s). These compete for CPU time like any other
processes.

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/