Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 30190 invoked from network); 27 Jun 2008 19:56:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2008 19:56:37 -0000 Received: (qmail 22503 invoked by uid 500); 27 Jun 2008 19:56:37 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 22470 invoked by uid 500); 27 Jun 2008 19:56: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 22458 invoked by uid 99); 27 Jun 2008 19:56:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 12:56:36 -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; Fri, 27 Jun 2008 19:55:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0E53C234C14C for ; Fri, 27 Jun 2008 12:55:45 -0700 (PDT) Message-ID: <131362244.1214596545043.JavaMail.jira@brutus> Date: Fri, 27 Jun 2008 12:55:45 -0700 (PDT) From: "Robert Chansler (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 ] Robert Chansler updated HADOOP-1702: ------------------------------------ Release Note: Reduced buffer copies as data is written to HDFS. The order of sending data bytes and control information has changed, but this will not be observed by client applications. (was: Reduce buffer copies when data is written to DFS. DataNode takes 30% less CPU. As a result, the format of data DFSClient sends changed and is incompatible with previous clients.) Hadoop Flags: [Incompatible change, Reviewed] (was: [Reviewed, Incompatible change]) > 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-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.