Subject: Re: Interrupt, interrupt threads, continuations, and kernel lwps
To: None <tech-kern@netbsd.org>
From: Allen Briggs <briggs@netbsd.org>
List: tech-kern
Date: 02/21/2007 21:14:35
[ trimmed cc ]
On Wed, Feb 21, 2007 at 05:57:41PM -0800, jonathan@dsg.stanford.edu wrote:
> Is the above roughly right? If it is, then (to steal a comment I made
> to Sam Leffler early in FAST_IPSEC development): 300,000 context
> switches/sec are _not_ your friend.
Your modest 50,000 packets/sec would presumably be on hardware that
can do interrupt coalescing, right? Even if your outline is correct,
I would hope that you're handling more than a single packet in each
interrupt / context switch, which should reduce the number of
context switches somewhat.
-allen
--
Allen Briggs | http://www.ninthwonder.com/~briggs/ | briggs@ninthwonder.com