From owner-freebsd-stable@FreeBSD.ORG Tue Jun 14 14:56:49 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDFDF106566B; Tue, 14 Jun 2011 14:56:49 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3E9D78FC27; Tue, 14 Jun 2011 14:56:48 +0000 (UTC) Received: by eyg7 with SMTP id 7so3028830eyg.13 for ; Tue, 14 Jun 2011 07:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:organization:references :sender:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=Ssyu8Qv8hlQOn9DgwxmJ/P81OqQ0bXv7uba7EaMeCQ8=; b=GO5vfyutyJvyGm3F6L6i5FtiRReqjFUCthDgdLvngMq1EGh/fK84HJSQS5+k1gzymW M1l4VFwMC5h/TTeAwAPkNPdy+p6MHQ//W5d4a3kMJ5fhbvGp7+vMeSbC+6nbpf/RWijR O7dMJ5X8BwBZ6+ydjHFrnBX2I6EwyEzkWV5f0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:sender:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=ImBemtagiy44dl+EXYDB45rL8YnXV/zif7+8O3QBmlG1U3USCqiCXOrFog4yg4EGfE jP3FnGWAyAs+yghuJ5oIPMbK0ZCWykB/LDxFLtYomyDPtBmfQwzb2o9zAbHogNIBB5E4 HSS3amdC0VRUuTNtYsQTuB55EwUjmjK/BP1ng= Received: by 10.223.75.15 with SMTP id w15mr34468faj.134.1308063408081; Tue, 14 Jun 2011 07:56:48 -0700 (PDT) Received: from localhost ([94.27.39.186]) by mx.google.com with ESMTPS id b25sm2789544fab.28.2011.06.14.07.56.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2011 07:56:46 -0700 (PDT) From: Mikolaj Golub To: Daniel Kalchev Organization: TOA Ukraine 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> Sender: Mikolaj Golub Date: Tue, 14 Jun 2011 17:56:43 +0300 In-Reply-To: <4DF7647F.7020901@digsys.bg> (Daniel Kalchev's message of "Tue, 14 Jun 2011 16:39:11 +0300") Message-ID: <86ei2wmpg4.fsf@in138.ua3> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: pjd@freebsd.org, freebsd-stable@freebsd.org Subject: Re: HAST instability X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2011 14:56:49 -0000 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