lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <65634d660808071058k7eb33330tcf3c7a877b7a64d@mail.gmail.com>
Date:	Thu, 7 Aug 2008 10:58:22 -0700
From:	"Tom Herbert" <therbert@...gle.com>
To:	netdev@...r.kernel.org
Subject: Re: SO_REUSEPORT?

> > We are looking at ways to scale TCP listeners.  I think we like is the
> > ability to listen on a port from multiple threads (sockets bound to
> > same port,  INADDR_ANY, and no interface binding) , which is what
> > SO_REUSEPORT would seem to allow.  Has this ever been implemented for
> > Linux or is there a good reason not to have it?
>
> On Linux, SO_REUSEADDR provide most of what SO_REUSEPORT provides on BSD.
>
> In any case, there is absolutely no point in creating multiple TCP listeners.
> Multiple threads can accept() on the same listener - at the same time.
>

We've been doing that, but then on wakeup it would seem that we're at
the mercy of scheduling-- basically which ever threads wakes up first
will get to process accept queue first.  This seems to bias towards
threads running on the same CPU as the wakeup is called, and   so this
method doesn't give us an even distribution of new connections across
the threads that we'd like.

Tom
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ