Re: [PATCH] tcp: bind() use stronger condition for bind_conflict
From: Alexandru Copot
Date: Thu Mar 29 2012 - 04:22:26 EST
On Wed, Mar 28, 2012 at 11:12 PM, Eric Dumazet <eric.dumazet@xxxxxxxxx> 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%
relative to inet_bind, after applying the patch.
So the performance is almost the same, even for such a large number of sockets.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/