netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: e@erig.me
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net] udp: inuse checks can quit early for reuseport
Date: Fri, 06 Jan 2017 20:57:07 -0500 (EST)	[thread overview]
Message-ID: <20170106.205707.49254629072159860.davem@davemloft.net> (raw)
In-Reply-To: <20170106012236.20078-1-e@erig.me>

From: Eric Garver <e@erig.me>
Date: Thu,  5 Jan 2017 20:22:36 -0500

> UDP lib inuse checks will walk the entire hash bucket to check if the
> portaddr is in use. In the case of reuseport we can stop searching when
> we find a matching reuseport.
> 
> On a 16-core VM a test program that spawns 16 threads that each bind to
> 1024 sockets (one per 10ms) takes 1m45s. With this change it takes 11s.
> 
> Also add a cond_resched() when the port is not specified.
> 
> Signed-off-by: Eric Garver <e@erig.me>

Applied to net-next.

      reply	other threads:[~2017-01-07  1:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06  1:22 [PATCH net] udp: inuse checks can quit early for reuseport Eric Garver
2017-01-07  1:57 ` David Miller [this message]

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=20170106.205707.49254629072159860.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=e@erig.me \
    --cc=netdev@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).