Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2007 23:49:11 +0400
From:      Anton Yuzhaninov <citrin@citrin.ru>
To:        freebsd-hackers@freebsd.org
Subject:   Re: tcp connection splitter
Message-ID:  <1891307882.20070412234911@citrin.ru>
In-Reply-To: <20070412190849.63355.qmail@web27705.mail.ukl.yahoo.com>
References:  <20070412190849.63355.qmail@web27705.mail.ukl.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Daniel,

You wrote on Thursday, April 12, 2007, 11:08:49 PM:

DT> I could use read-write locks here (single writer,
DT> multiple readers) but it doesn't help with write
DT> lock contention.

DT> There must be some clever lockless algorithm to
DT> achieve the same effect.

Try see FSM server model (e. g. using libevent). If all clients served
by single thread, and signle process (using noblocking sockets) then
no locks need.

This model scale up to 50k-100k connections per host.

-- 
 Anton Yuzhaninov.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1891307882.20070412234911>