hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1364925 - in /hadoop/common/branches/branch-1.1: CHANGES.txt bin/hadoop-config.sh
Date Tue, 24 Jul 2012 07:27:54 GMT
Author: mattf
Date: Tue Jul 24 07:27:53 2012
New Revision: 1364925

URL: http://svn.apache.org/viewvc?rev=1364925&view=rev
Log:
HADOOP-7154. Set MALLOC_ARENA_MAX in hadoop-env.sh. Contributed by Todd Lipcon.

Modified:
    hadoop/common/branches/branch-1.1/CHANGES.txt
    hadoop/common/branches/branch-1.1/bin/hadoop-config.sh

Modified: hadoop/common/branches/branch-1.1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1.1/CHANGES.txt?rev=1364925&r1=1364924&r2=1364925&view=diff
==============================================================================
--- hadoop/common/branches/branch-1.1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1.1/CHANGES.txt Tue Jul 24 07:27:53 2012
@@ -137,6 +137,8 @@ Release 1.1.0 - 2012.07.09
     HDFS-2465. Add HDFS support for fadvise readahead and drop-behind.
     (todd via suresh)
 
+    HADOOP-7154. Should set MALLOC_ARENA_MAX in hadoop-env.sh
+    (todd via mattf)
 
   BUG FIXES
 

Modified: hadoop/common/branches/branch-1.1/bin/hadoop-config.sh
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1.1/bin/hadoop-config.sh?rev=1364925&r1=1364924&r2=1364925&view=diff
==============================================================================
--- hadoop/common/branches/branch-1.1/bin/hadoop-config.sh (original)
+++ hadoop/common/branches/branch-1.1/bin/hadoop-config.sh Tue Jul 24 07:27:53 2012
@@ -75,6 +75,11 @@ if [ "$HADOOP_HOME_WARN_SUPPRESS" = "" ]
   echo 1>&2
 fi
 
+# Newer versions of glibc use an arena memory allocator that causes virtual
+# memory usage to explode. This interacts badly with the many threads that
+# we use in Hadoop. Tune the variable down to prevent vmem explosion.
+export MALLOC_ARENA_MAX=${MALLOC_ARENA_MAX:-4}
+
 export HADOOP_HOME=${HADOOP_PREFIX}
 export HADOOP_HOME_WARN_SUPPRESS=1
 



Mime
View raw message