Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 97257 invoked from network); 30 Nov 2006 23:23:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2006 23:23:45 -0000 Received: (qmail 62280 invoked by uid 500); 30 Nov 2006 23:23:53 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 62265 invoked by uid 500); 30 Nov 2006 23:23:53 -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 62256 invoked by uid 99); 30 Nov 2006 23:23:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 15:23:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Thu, 30 Nov 2006 15:23:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5A95D7142FA for ; Thu, 30 Nov 2006 15:23:24 -0800 (PST) Message-ID: <32939059.1164929004368.JavaMail.jira@brutus> Date: Thu, 30 Nov 2006 15:23:24 -0800 (PST) From: "Raghu Angadi (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-764) The memory consumption of processReport() in the namenode can be reduced In-Reply-To: <21824491.1164845001071.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 [ http://issues.apache.org/jira/browse/HADOOP-764?page=comments#action_12454778 ] Raghu Angadi commented on HADOOP-764: ------------------------------------- Another memory overhead in processReport() is the fact that we seem to do blocks.clear() and rebuild the blocks tree each time. > The memory consumption of processReport() in the namenode can be reduced > ------------------------------------------------------------------------ > > Key: HADOOP-764 > URL: http://issues.apache.org/jira/browse/HADOOP-764 > Project: Hadoop > Issue Type: Bug > Components: dfs > Reporter: dhruba borthakur > Assigned To: dhruba borthakur > > The FSNamesystem.processReport() method converts the blocklist for a datanode into an array by calling node.getBlocks(). Although this memory allocation is transient, it could possibly require the garbage-collector to work that much harder. > The method Block.getBlocks() should be deprecated. Code that currently uses this method should instead iterate over the Collection. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira