Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 6971 invoked from network); 10 Oct 2007 05:17:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2007 05:17:14 -0000 Received: (qmail 53038 invoked by uid 500); 10 Oct 2007 05:17:01 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 52991 invoked by uid 500); 10 Oct 2007 05:17:00 -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 52772 invoked by uid 99); 10 Oct 2007 05:17:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 22:17:00 -0700 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; Wed, 10 Oct 2007 05:17:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0C78E71422E for ; Tue, 9 Oct 2007 22:16:52 -0700 (PDT) Message-ID: <25325203.1191993412048.JavaMail.jira@brutus> Date: Tue, 9 Oct 2007 22:16:52 -0700 (PDT) From: "dhruba borthakur (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1841) IPC server should write repsonses asynchronously In-Reply-To: <4628108.1189017454955.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-1841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] dhruba borthakur updated HADOOP-1841: ------------------------------------- Attachment: asyncRPC.patch Hi Enis, I took the liberty of writing some code to do asynchronous RPC responses from the server. This patch has the following: 1. There is *one* additional Responder thread, whose job is to write the RPC responses back to the RPC clients. It does non-blocking IO on the socket. Because it does non-blocking IO, only one Responder thread is good enough. 2. The RPC handler threads queues the responses of the RPCs into buffers associated with the response-channel. These responses are flushed to the client by the Responder thread described above. 3. A test case that creates 50 threads and issues concurrent RPCs. Each of these RPCs transfers 400K of data from client to server and back from server to client. This is very preliminary code but I would like to enhance the test to measure whether this change is making any difference to performance. > IPC server should write repsonses asynchronously > ------------------------------------------------ > > Key: HADOOP-1841 > URL: https://issues.apache.org/jira/browse/HADOOP-1841 > Project: Hadoop > Issue Type: Improvement > Components: ipc > Reporter: Doug Cutting > Assignee: Enis Soztutar > Attachments: asyncRPC.patch > > > Hadoop's IPC Server currently writes responses from request handler threads using blocking writes. Performance and scalability might be improved if responses were written asynchronously. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.