Re: SO_REUSEPORT - can it be done in kernel?

Herbert Xu
2011-03-02T03:09:19Z

On Wed, Mar 02, 2011 at 03:56:38AM +0100, Eric Dumazet wrote:
>
> Anyway, the SYN-ACK is generated by softirq, not really user choice.
> CPU depends if NIC is RX multiqueue or RPS is setup.

Which is exactly what we want. The RX queue selection should
determine the TX cpu.

> All this discussion is about letting process scheduler decide TX queue,
> (because user/admin used cpu affinity) or let network stack drive
> scheduler : Please migrate this thread on this cpu.
>
> Both schems should be allowed/configurable so that best results are
> available.

Whatever scheme we end up with, hashing different sockets running
in the same thread to different queues is just broken.

Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt