Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 71119 invoked from network); 1 Jul 2008 22:53:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 22:53:37 -0000 Received: (qmail 66651 invoked by uid 500); 1 Jul 2008 22:53:37 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 66619 invoked by uid 500); 1 Jul 2008 22:53:37 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 66608 invoked by uid 99); 1 Jul 2008 22:53:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 15:53:37 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 22:52:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 15A0C234C14E for ; Tue, 1 Jul 2008 15:52:45 -0700 (PDT) Message-ID: <983231395.1214952765087.JavaMail.jira@brutus> Date: Tue, 1 Jul 2008 15:52:45 -0700 (PDT) From: "Raghu Angadi (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3672) support for persistent connections to improve random read performance. In-Reply-To: <621994773.1214852265288.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-3672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609740#action_12609740 ] Raghu Angadi commented on HADOOP-3672: -------------------------------------- What is the avg size of pread()? Could you attach your benchmark to the jira? > support for persistent connections to improve random read performance. > ---------------------------------------------------------------------- > > Key: HADOOP-3672 > URL: https://issues.apache.org/jira/browse/HADOOP-3672 > Project: Hadoop Core > Issue Type: Improvement > Components: dfs > Affects Versions: 0.17.0 > Environment: Linux 2.6.9-55 , Dual Core Opteron 280 2.4Ghz , 4GB memory > Reporter: George Wu > > preads() establish new connections per request. yourkit java profiles show that this connection overhead is pretty significant on the DataNode. > I wrote a simple microbenchmark program which does many iterations of pread() from different offsets of a large file. I hacked DFSClient/DataNode code to re-use the same connection/DataNode request handler thread. The performance improvement was 7% when the data is served from disk and 80% when the data is served from the OS page cache. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.