Re: SO_REUSEPORT - can it be done in kernel?

Eric Dumazet
2011-03-01T10:33:27Z

Le mardi 01 mars 2011 à 05:19 -0500, Thomas Graf a écrit :
> On Mon, Feb 28, 2011 at 06:07:49PM +0100, Eric Dumazet wrote:
> > > The numbers differ a lot depending on the architecture we test on.
> > >
> > > F.e. on a 12 core AMD with 2 NUMA nodes:
> > >
> > > 2.6.32 named -n 1: 37.0kqps
> > > named: 3.8kqps (yes, no joke, the socket receive buffer is
> > > always full and the kernel drops pkts)
> >
> > Yes, this old kernel miss commit c377411f2494a93 added in 2.6.35
> > (net: sk_add_backlog() take rmem_alloc into account)
>
> I retested with net-2.6 w/o Herbert's patch:
>
> named -n 1: 36.9kqps
> named: 16.2kqps

Thats better ;)

You could do "cat /proc/net/udp" to check if drops occur on port 53
socket (last column)

But maybe your queryperf is limited to few queries in flight (default is
20 per queryperf instance)