Re: SO_REUSEPORT - can it be done in kernel?

Tom Herbert
2011-01-27T21:32:29Z

On Thu, Jan 27, 2011 at 2:07 AM, Daniel Baluta <daniel.baluta@gmail.com> wrote:
> Hi Tom,
>
> How did you solved the issue regarding scaling TCP listeners?
> I think SO_REUSEPORT proposed by patch [1] can be a good
> start. Where there any follow ups?
>

As Bill mentioned we are continue to work on the TCP issues. Looks
like modifying the TCP listener structures will probably be required.

> Also, solving the problem in users pace can be an option. I want
> to run multiple instances of a DNS server on a multi core system.
> Any suggestions would be welcomed.
>
> SO_REUSEPORT option seems to be already there [2]. Where
> there any plans to have a kernel implementation?
>

Yes, we are still planning this. The UDP implementation for my
earlier patch should be usable to try for DNS/UDP-- this is in fact
where we saw a major performance gain. Eric Dumazet had some nice
improvements that should probably be looked at also.

Tom