Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 10400 invoked from network); 28 Nov 2009 02:09:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Nov 2009 02:09:44 -0000 Received: (qmail 56259 invoked by uid 500); 28 Nov 2009 02:09:44 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 56210 invoked by uid 500); 28 Nov 2009 02:09:44 -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 56178 invoked by uid 99); 28 Nov 2009 02:09:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 02:09:43 +0000 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; Sat, 28 Nov 2009 02:09:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A8D44234C052 for ; Fri, 27 Nov 2009 18:09:20 -0800 (PST) Message-ID: <47102934.1259374160676.JavaMail.jira@brutus> Date: Sat, 28 Nov 2009 02:09:20 +0000 (UTC) From: "Aaron Kimball (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-5958) Use JDK 1.6 File APIs in DF.java wherever possible 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-5958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aaron Kimball updated HADOOP-5958: ---------------------------------- Attachment: HADOOP-5958.5.patch I actually realized that run() isn't called anywhere in Shell itself, so unless DF explicitly calls it, we'll never invoke a subprocess. So I've only had to change the DF class to eliminate subprocesses; run() is only called in getFilesystem() and getMounts() now. > Use JDK 1.6 File APIs in DF.java wherever possible > -------------------------------------------------- > > Key: HADOOP-5958 > URL: https://issues.apache.org/jira/browse/HADOOP-5958 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Reporter: Devaraj Das > Assignee: Aaron Kimball > Fix For: 0.22.0 > > Attachments: HADOOP-5958-hdfs.patch, HADOOP-5958-mapred.patch, HADOOP-5958.2.patch, HADOOP-5958.3.patch, HADOOP-5958.4.patch, HADOOP-5958.5.patch, HADOOP-5958.patch > > > JDK 1.6 has File APIs like File.getFreeSpace() which should be used instead of spawning a command process for getting the various disk/partition related attributes. This would avoid spikes in memory consumption by tasks when things like LocalDirAllocator is used for creating paths on the filesystem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.