Re: Dropping Packets in 2.6.17

From: Robert Hancock
Date: Thu Jun 22 2006 - 21:13:49 EST


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@xxxxxxxxxxxxx
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/