Messages in this thread | | | Date | Thu, 29 Mar 2012 11:22:21 +0300 | Subject | Re: [PATCH] tcp: bind() use stronger condition for bind_conflict | From | Alexandru Copot <> |
| |
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
| |