[ https://issues.apache.org/jira/browse/HADOOP-5958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768822#action_12768822 ]
Aaron Kimball commented on HADOOP-5958: --------------------------------------- Do we want to use {{File.getFreeSpace()}} or {{File.getUsableSpace()}}? The API docs (http://java.sun.com/javase/6/docs/api/java/io/File.html) are pretty vague about what "usable" means. A quick test on my machine shows that they do return different values, by about 6%. > 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 > Fix For: 0.21.0 > > > 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.