Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 85452 invoked from network); 20 Nov 2007 17:48:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2007 17:48:07 -0000 Received: (qmail 96933 invoked by uid 500); 20 Nov 2007 17:47:53 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 96904 invoked by uid 500); 20 Nov 2007 17:47:53 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 96895 invoked by uid 99); 20 Nov 2007 17:47:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 09:47:53 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 17:48:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0387C71420B for ; Tue, 20 Nov 2007 09:47:43 -0800 (PST) Message-ID: <14153704.1195580863011.JavaMail.jira@brutus> Date: Tue, 20 Nov 2007 09:47:43 -0800 (PST) From: "Raghu Angadi (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-2232) Add option to disable nagles algorithm in the IPC Server In-Reply-To: <25291272.1195512643826.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543964 ] Raghu Angadi commented on HADOOP-2232: -------------------------------------- Are there any disadvantages of enabling this option by default? > Add option to disable nagles algorithm in the IPC Server > -------------------------------------------------------- > > Key: HADOOP-2232 > URL: https://issues.apache.org/jira/browse/HADOOP-2232 > Project: Hadoop > Issue Type: Improvement > Components: ipc > Affects Versions: 0.16.0 > Reporter: Clint Morgan > Attachments: HADOOP-2232-1.patch, HADOOP-2232-2.patch > > > While investigating hbase performance, I found a bottleneck caused by > Nagles algorithm. For some reads I would get a bi-modal distribution > of read times, with about half the times being around 20ms, and half > around 200ms. I tracked this down to the well-known interaction between > Nagle's algorithm and TCP delayed acknowledgments. > I found that calling setTcpNoDelay(true) on the server's socket > connection dropped all of my read times back to a constant 20 ms. > I propose a patch to have this TCP_NODELAY option be configurable. The > attacked patch allows one to set the TCP_NODELAY option on both the > client and the server side. Currently this is defaulted to false > (i.e., with Nagle's enabled). > To see the effect, I have included a Test which provokes the issue by > sending a MapWriteable over an IPC call. On my machine this test shows > a speedup of 117 times when using TCP_NODELAY. > These tests were done on OSX 10.4. Your milage may very with other > TCP/IP implementation stacks. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.