Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open huge amount of outgoing connections (unable to bind ... )

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

On Wed, Apr 21, 2010 at 02:05:14AM +0200, Eric Dumazet (eric.dumazet@gmail.com) wrote:

To return back to exponential bind() times you need to revert the whole
original patch including magic 5 number, not only bsockets.

But actual problem is not in this digit, but in a deeper logic.
Previously we scanned the whole table, now we have 5 attempts to
find out at least one bucket (without conflict) we will insert
new socket into. Apparently for large number of addresses it is possible
that all 5 times we will randomly select those buckets which conflicts.
As dumb solution we can increase 'attempt' number to infinite one, or
fallback to whole-table-search after several random attempts, which is a
bit more clever I think.

-- 
	Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open huge a ..., Gaspar Chilingarov, (Tue Apr 20, 3:17 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Gaspar Chilingarov, (Tue Apr 20, 4:18 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Gaspar Chilingarov, (Tue Apr 20, 4:20 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Gaspar Chilingarov, (Tue Apr 20, 4:20 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Gaspar Chilingarov, (Tue Apr 20, 4:35 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Gaspar Chilingarov, (Tue Apr 20, 4:57 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Gaspar Chilingarov, (Tue Apr 20, 5:12 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Evgeniy Polyakov, (Tue Apr 20, 5:30 pm)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Evgeniy Polyakov, (Wed Apr 21, 11:27 am)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Evgeniy Polyakov, (Wed Apr 21, 11:58 am)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Michael S. Tsirkin, (Sun Apr 25, 7:26 am)
Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open hu ..., Michael S. Tsirkin, (Sun Apr 25, 9:35 am)