Re: OpenBSD 4.2 Question

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: misc <misc@...>
Date: Friday, September 7, 2007 - 7:48 am

let me try to translate my mail to english...

* Henning Brauer [2007-09-07 12:49]:

traditionally, a network inteerface card interrupted once per packet ...

> received (or successfully sent, but let us ignore the tx path for now).

and let me explain why that makes so much of a difference. rocessing
the packets is one thing, context switching between the interrupt
handler (which takes teh packet from the nic's rx ring and puts it into
the ipintrq), the soft interrupt handling (where the packet is taken
from the ipintrq and running through ip_input, then maybe ip_forward and
_output and put into the (potentially other) nic's output queue, well,
that switching is not exactly free, performance wise, to put it nicely.
so instead of interrupt, one packet into ipintrq, processing at softnet,
oh wait interrupt, peel another out of the rx ring, etc yadda yadda it
is much cheaper to process a bunch of packets at once.

the downside is that you potentially increase latency, since after
packet reception teh nic does not interupt immediately and you don't
process immediately (for some value of immediately), but only after
enough othe rpackets are there. to cope with that effect the time I
mentioned above is there, so that a apcket doesn't sit in teh rx ring
for longer than XXX msec, wether otehrsd arrive or not.

--
Henning Brauer, hb@bsws.de, henning@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
OpenBSD 4.2 Question, Sam Fourman Jr., (Thu Sep 6, 10:31 pm)
Re: OpenBSD 4.2 Question, Marco Peereboom, (Fri Sep 7, 8:26 am)
Re: OpenBSD 4.2 Question, Sam Fourman Jr., (Sat Sep 8, 12:48 am)
Re: OpenBSD 4.2 Question, Henning Brauer, (Fri Sep 7, 6:40 am)
Re: OpenBSD 4.2 Question, Henning Brauer, (Fri Sep 7, 7:48 am)
QLA2462 HBA card and OpenBSD 4.1 support, Julian Bolivar, (Fri Sep 7, 1:24 am)
Re: OpenBSD 4.2 Question, Chris Kuethe, (Fri Sep 7, 12:26 am)
Re: OpenBSD 4.2 Question, Darren Spruell, (Thu Sep 6, 11:20 pm)