All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rémi Denis-Courmont" <rdenis@simphalempin.com>
To: "Tom Herbert" <therbert@google.com>
Cc: netdev@vger.kernel.org
Subject: Re: SO_REUSEPORT?
Date: Thu, 7 Aug 2008 20:09:34 +0300	[thread overview]
Message-ID: <200808072009.34891.rdenis@simphalempin.com> (raw)
In-Reply-To: <65634d660808070957j12e1f93rfb577efabc771c9a@mail.gmail.com>

Le jeudi 7 août 2008 19:57:15 Tom Herbert, vous avez écrit :
> Hello,
>
> 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.

-- 
Rémi Denis-Courmont
http://www.remlab.net/

  reply	other threads:[~2008-08-07 17:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07 16:57 SO_REUSEPORT? Tom Herbert
2008-08-07 17:09 ` Rémi Denis-Courmont [this message]
2008-08-07 17:58   ` SO_REUSEPORT? Tom Herbert
2008-08-07 18:17     ` SO_REUSEPORT? Rick Jones
2008-08-07 19:03       ` SO_REUSEPORT? Stephen Hemminger
2008-08-07 19:43         ` SO_REUSEPORT? Tom Herbert
2008-08-07 20:14           ` SO_REUSEPORT? Rick Jones
2008-08-07 23:05             ` SO_REUSEPORT? Tom Herbert
2008-08-07 23:28               ` SO_REUSEPORT? Rick Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200808072009.34891.rdenis@simphalempin.com \
    --to=rdenis@simphalempin.com \
    --cc=netdev@vger.kernel.org \
    --cc=therbert@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.