Re: squid-smp: synchronization issue & solutions

From: Robert Collins <robertc_at_robertcollins.net>
Date: Fri, 20 Nov 2009 15:53:25 +1100

On Wed, 2009-11-18 at 10:46 +0800, Adrian Chadd wrote:
> Plenty of kernels nowdays do a bit of TCP and socket process in
> process/thread context; so you need to do your socket TX/RX in
> different processes/threads to get parallelism in the networking side
> of things.

Very good point.

> You could fake it somewhat by pushing socket IO into different threads
> but then you have all the overhead of shuffling IO and completed IO
> between threads. This may be .. complicated.

The event loop I put together for -3 should be able to do that without
changing the loop - just extending the modules that hook into it.

-Rob

Received on Fri Nov 20 2009 - 04:53:38 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 20 2009 - 12:00:06 MST