Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jun 2011 17:56:43 +0300
From:      Mikolaj Golub <trociny@freebsd.org>
To:        Daniel Kalchev <daniel@digsys.bg>
Cc:        pjd@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: HAST instability
Message-ID:  <86ei2wmpg4.fsf@in138.ua3>
In-Reply-To: <4DF7647F.7020901@digsys.bg> (Daniel Kalchev's message of "Tue, 14 Jun 2011 16:39:11 %2B0300")
References:  <4DE21C64.8060107@digsys.bg> <4DE3ACF8.4070809@digsys.bg> <86d3j02fox.fsf@kopusha.home.net> <4DE4E43B.7030302@digsys.bg> <86zkm3t11g.fsf@in138.ua3> <4DE5048B.3080206@digsys.bg> <4DE5D535.20804@digsys.bg> <4DE8FE78.6070401@digsys.bg> <4DE90955.9020505@digsys.bg> <86zklp8vmg.fsf@kopusha.home.net> <86vcwd8vj8.fsf@kopusha.home.net> <4DF7647F.7020901@digsys.bg>

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

On Tue, 14 Jun 2011 16:39:11 +0300 Daniel Kalchev wrote:

 DK> On 10.06.11 20:07, Mikolaj Golub wrote:
 >> On Fri, 10 Jun 2011 20:05:43 +0300 Mikolaj Golub wrote to Daniel Kalchev:
 >>
 >>   MG>  Could you please try this patch?
 >>
 >>   MG>  http://people.freebsd.org/~trociny/hastd.no_shutdown.patch
 >>
 >> Sure you still have to have your kernel patched with uipc_socket.c.patch :-)
 >>

 DK> It is now running for about a day with both patches applied, without
 DK> disconnects.

 DK> Also, now TCP/IP connections always stay in ESTABLISHED state. As I
 DK> believe they should. Primary to secondary drain quickly on switching
 DK> form init to primary etc. No troubles without checksums as
 DK> well. Kernel is as of

Thanks!

It has turned out that automatic receive buffer sizing works only for
connections in ESTABLISHED state. And with small receive buffer the connection
might stuck sending data only via TCP window probes -- one byte every few
seconds (see "Scenario to make recv(MSG_WAITALL) stuck" in net@ for details).

hastd.no_shutdown.patch disables closing of unused directions so the
connections remain in ESTABLISHED state and automatic receive buffer sizing
works again.

uipc_socket.c.patch has been committed to CURRENT and I am going to MFC soon.

 DK> FreeBSD b1a 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Jun 13 11:32:38 EEST
 DK> 2011     root@b1a:/usr/obj/usr/src/sys/GENERIC  amd64

 DK> Daniel

-- 
Mikolaj Golub



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