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] [day] [month] [year] [list]
Date:   Fri, 06 Jan 2017 20:57:07 -0500 (EST)
From:   David Miller <davem@...emloft.net>
To:     e@...g.me
Cc:     netdev@...r.kernel.org
Subject: Re: [PATCH net] udp: inuse checks can quit early for reuseport

From: Eric Garver <e@...g.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@...g.me>

Applied to net-next.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ