lkml.org 
[lkml]   [2012]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] tcp: bind() use stronger condition for bind_conflict
From
On Wed, Mar 28, 2012 at 11:12 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:

> Some performance data would be welcomed, in the case many sockets are
> already bound...


I've done some tests running a program that creates and binds(0) 90000 sockets.
The total running time, on average, is:
* without this patch: 0.352 s
* with the patch: 0.355 s

Also, recording this program with perf shows a small increase of 0.6%
for inet_csk_get_port
relative to inet_bind, after applying the patch.

So the performance is almost the same, even for such a large number of sockets.

Alex Copot


\
 
 \ /
  Last update: 2012-03-29 10:25    [W:0.044 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site