You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2015/05/10 18:30:47 UTC

[02/12] drill git commit: DRILL-3007: Disable automatic mmap threshold on Linux

DRILL-3007: Disable automatic mmap threshold on Linux


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/0f424096
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/0f424096
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/0f424096

Branch: refs/heads/merge_2015_05_09
Commit: 0f424096a1d98e603d346ba4906eb7c3434855df
Parents: 42d5f81
Author: Jacques Nadeau <ja...@apache.org>
Authored: Sat May 9 17:17:56 2015 -0700
Committer: Jacques Nadeau <ja...@apache.org>
Committed: Sun May 10 09:24:21 2015 -0700

----------------------------------------------------------------------
 distribution/src/resources/drill-config.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/0f424096/distribution/src/resources/drill-config.sh
----------------------------------------------------------------------
diff --git a/distribution/src/resources/drill-config.sh b/distribution/src/resources/drill-config.sh
index c66afea..3de6be4 100644
--- a/distribution/src/resources/drill-config.sh
+++ b/distribution/src/resources/drill-config.sh
@@ -197,6 +197,13 @@ if $is_cygwin; then
   fi
 fi
 
+# make sure allocator chunks are done as mmap'd memory (and reduce arena overhead)
+export MALLOC_ARENA_MAX=4
+export MALLOC_MMAP_THRESHOLD_=131072
+export MALLOC_TRIM_THRESHOLD_=131072
+export MALLOC_TOP_PAD_=131072
+export MALLOC_MMAP_MAX_=65536
+
 # Variables exported form this script
 export HADOOP_HOME
 export is_cygwin