Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 176DB615F for ; Mon, 30 May 2011 06:03:33 +0000 (UTC) Received: (qmail 96064 invoked by uid 500); 30 May 2011 06:03:32 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 95943 invoked by uid 500); 30 May 2011 06:03:31 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 95935 invoked by uid 99); 30 May 2011 06:03:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 06:03:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 06:03:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5B2A1E8E65 for ; Mon, 30 May 2011 06:02:47 +0000 (UTC) Date: Mon, 30 May 2011 06:02:47 +0000 (UTC) From: "Min Zhou (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <852334824.52781.1306735367370.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1992675736.52742.1306733207390.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HADOOP-7339) Introduce a buffered checksum for avoiding frequently calls on Checksum.update() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Min Zhou updated HADOOP-7339: ----------------------------- Attachment: HADOOP-7339-v2.diff fixed svn conflicts. > Introduce a buffered checksum for avoiding frequently calls on Checksum.update() > -------------------------------------------------------------------------------- > > Key: HADOOP-7339 > URL: https://issues.apache.org/jira/browse/HADOOP-7339 > Project: Hadoop Common > Issue Type: Improvement > Components: util > Reporter: Min Zhou > Fix For: 0.22.0 > > Attachments: HADOOP-7339-v1.diff, HADOOP-7339-v2.diff > > > We found that PureJavaCRC32/CRC32.update() is the TOP 1 of the methods consuming CPU in a map side, and in reduce side, it cost a lots of CPU too. > IFileOutputStream would frequently call Checksum.update() during writing a record. It's very common a MR key/value less than 512 bytes. Checksum.update() would be called every time writing a key/value. > Test case: terasort 100MB. > Checksum.update() calls has be reduced from 4030348 to 28069. This method is not a hotspot anymore. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira