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 5910E10922 for ; Thu, 21 Nov 2013 20:09:15 +0000 (UTC) Received: (qmail 61601 invoked by uid 500); 21 Nov 2013 20:09:15 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 61515 invoked by uid 500); 21 Nov 2013 20:09:14 -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 61507 invoked by uid 99); 21 Nov 2013 20:09:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Nov 2013 20:09:14 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hiranya911@gmail.com designates 209.85.192.169 as permitted sender) Received: from [209.85.192.169] (HELO mail-pd0-f169.google.com) (209.85.192.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Nov 2013 20:09:09 +0000 Received: by mail-pd0-f169.google.com with SMTP id v10so235222pde.14 for ; Thu, 21 Nov 2013 12:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version; bh=ZDNGBGuVsQqdk3GNL4UcvT6e9+uVGlFyKwOMtoJW2DQ=; b=oGeSOz8ZfEsTYsLk19viakWlRzqz1AAhcJdSsIdX0NlPhjcAFNY6q1uAn3vByNAf4i hZw6OGpcvQkoPpKnQMySP1CNxI8xdIvVujZMXiPL6KnuaVucoRQv1aXDsmFQY75vmK7u gL42Awmqa8OKAOqcJI3wW6H5AEK+UDkMkT+yCkgxS+0T+as6fre5kWvDegA86zSIkkFo Rw5Zc9GSHJEf41Fv3PGCkVjcgHE2rbEnNzdjfm3SJMS4BUsSDfldyyr6jzEL75sAqByA H551Wj2BC5N6PTusIgZpP7Nuj4ljEOBUtNuC/ohrQjncdnPvbpxL77sDMyvv5BmxZPCk UKCw== X-Received: by 10.66.4.130 with SMTP id k2mr7945293pak.95.1385064529053; Thu, 21 Nov 2013 12:08:49 -0800 (PST) Received: from [192.168.2.3] ([128.111.45.208]) by mx.google.com with ESMTPSA id xs1sm54216729pac.7.2013.11.21.12.08.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 12:08:47 -0800 (PST) From: Hiranya Jayathilaka Content-Type: multipart/alternative; boundary="Apple-Mail=_512452EA-C37F-4EDC-AFDB-7F3A06949E11" Subject: HTTP Core Performance and Reactor Buffer Size Message-Id: <3BDFA058-CD6C-4697-8095-B8DCAE1793CC@gmail.com> Date: Thu, 21 Nov 2013 12:08:50 -0800 To: "dev@synapse.apache.org" , HttpComponents Project Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) X-Mailer: Apple Mail (2.1485) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_512452EA-C37F-4EDC-AFDB-7F3A06949E11 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Devs, I just found out that the performance of the Synapse Pass Through = transport is highly sensitive to the RcvBufferSize of the IO reactors = (especially when mediating very large messages). Here are some test = results. In this case, I'm simply passing through a 1M message through = Synapse to a backend server, which simply echoes it back to the client. = Notice how the execution time of the scenario varies with the = RcvBufferSize of the IO reactors. RcvBufferSize (in bytes) Scenario Execution Time (in = seconds) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D 8192 (Synapse default) 25.9 16384 0.4 32768 0.2 Is this behavior normal? If so does it make sense to change the Synapse = default buffer size to something larger (e.g. 16k)? Interestingly I see this difference in behavior on Linux only. I cannot = see a significant change in behavior on Mac.=20 Appreciate your thoughts on this. Thanks, Hiranya -- Hiranya Jayathilaka Mayhem Lab/RACE Lab; Dept. of Computer Science, UCSB; http://cs.ucsb.edu E-mail: hiranya@cs.ucsb.edu; Mobile: +1 (805) 895-7443 Blog: http://techfeast-hiranya.blogspot.com --Apple-Mail=_512452EA-C37F-4EDC-AFDB-7F3A06949E11--