Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86C3C10813 for ; Sun, 24 Nov 2013 18:00:53 +0000 (UTC) Received: (qmail 78433 invoked by uid 500); 24 Nov 2013 18:00:53 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 78411 invoked by uid 500); 24 Nov 2013 18:00:53 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 78400 invoked by uid 99); 24 Nov 2013 18:00:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Nov 2013 18:00:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andreas.veithen@gmail.com designates 209.85.216.46 as permitted sender) Received: from [209.85.216.46] (HELO mail-qa0-f46.google.com) (209.85.216.46) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Nov 2013 18:00:48 +0000 Received: by mail-qa0-f46.google.com with SMTP id f11so2225908qae.12 for ; Sun, 24 Nov 2013 10:00:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=RRu78xSX8sDovgt0Mqv9B25pSVUuKcPnFy0dAM/VjqY=; b=MZcfTRveSb36v6a2qbXD2x01ZIaoa3CV0xu1bX9KazEIbeHjtdLt0na7D9djkNwnOT R1ioAnx/sZRCwgUE1k92QyfHevhxTTCOLCzmOcpgAYDdl7R/GuOn9e3Z7F6uUesVTguH ydf9kKFbMLgnabhwoDnhcnWSE1Hp2ZllYa3nOFZcpe1ULk/4q7rmAlaOf1jFd8WhL/4F 3DSvP0hiFuKR+flkfra8rbOmzi67r7W4tMiI9a/oFUtepYU/cSlESsMdxZ3eC+zU0Ypj 1lUilXmeRxXsOH1uypgNwalY/NYWnOdZjf9CrScQVZfpGMx2gK93R6+FDLBkgV0rFPql ZDgg== X-Received: by 10.224.136.10 with SMTP id p10mr39575486qat.37.1385316027438; Sun, 24 Nov 2013 10:00:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.96.11.7 with HTTP; Sun, 24 Nov 2013 10:00:07 -0800 (PST) In-Reply-To: References: <3BDFA058-CD6C-4697-8095-B8DCAE1793CC@gmail.com> <1385296371.25784.7.camel@ubuntu> <1385299283.25784.10.camel@ubuntu> From: Andreas Veithen Date: Sun, 24 Nov 2013 19:00:07 +0100 Message-ID: Subject: Re: HTTP Core Performance and Reactor Buffer Size To: "dev@synapse.apache.org" Cc: HttpComponents Project Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Nov 24, 2013 at 5:40 PM, Andreas Veithen wrote: > What I still don't understand completely is why this causes such a > slowdown. The effect of the issue in httpcore-nio is that the peer > sees the TCP window size gradually drop from 43690 to 8192. Would that > trigger some mechanism in the TCP stack of the peer that delays the > transmission of TCP segments (even if the window is not 0)? After reviewing some aspects of TCP, I think that the most likely candidate to explain this behavior is actually the "silly window syndrome" avoidance algorithm. Since the problem occurs in an integration test, all communication goes over the loopback interface where MSS=65495. This means that the window size gets much smaller than both the MSS and the initial/maximum window size. Probably Linux considers this as "silly" small and starts delaying transmission in an attempt to allow the window to grow to a more reasonable size (which of course never happens). Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org