Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 94920 invoked from network); 7 May 2008 00:18:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 00:18:21 -0000 Received: (qmail 92319 invoked by uid 500); 7 May 2008 00:18:21 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 92308 invoked by uid 500); 7 May 2008 00:18:21 -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 92297 invoked by uid 99); 7 May 2008 00:18:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 17:18:21 -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; Wed, 07 May 2008 00:17:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D1E7234C100 for ; Tue, 6 May 2008 17:17:55 -0700 (PDT) Message-ID: <227207073.1210119475628.JavaMail.jira@brutus> Date: Tue, 6 May 2008 17:17:55 -0700 (PDT) From: "Raghu Angadi (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-1702) Reduce buffer copies when data is written to DFS 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-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raghu Angadi updated HADOOP-1702: --------------------------------- Attachment: HADOOP-1702.patch Thanks Hairong. Attached patch fixes the above. Regd #2, changed {{packetSize}} to include the header rather than changing its name. > Reduce buffer copies when data is written to DFS > ------------------------------------------------ > > Key: HADOOP-1702 > URL: https://issues.apache.org/jira/browse/HADOOP-1702 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Affects Versions: 0.14.0 > Reporter: Raghu Angadi > Assignee: Raghu Angadi > Fix For: 0.18.0 > > Attachments: HADOOP-1702.patch, HADOOP-1702.patch, HADOOP-1702.patch, HADOOP-1702.patch, HADOOP-1702.patch, HADOOP-1702.patch > > > HADOOP-1649 adds extra buffering to improve write performance. The following diagram shows buffers as pointed by (numbers). Each eatra buffer adds an extra copy since most of our read()/write()s match the io.bytes.per.checksum, which is much smaller than buffer size. > {noformat} > (1) (2) (3) (5) > +---||----[ CLIENT ]---||----<>-----||---[ DATANODE ]---||--<>-> to Mirror > | (buffer) (socket) | (4) > | +--||--+ > ===== | > ===== ===== > (disk) ===== > {noformat} > Currently loops that read and write block data, handle one checksum chunk at a time. By reading multiple chunks at a time, we can remove buffers (1), (2), (3), and (5). > Similarly some copies can be reduced when clients read data from the DFS. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.