aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2017-02-22 09:22:22 +0100
committerwsnipex <wsnipex@a1.net>2017-02-23 13:25:41 +0100
commit41414ac16a0a05b939e48a1e26b6dd898d470fda (patch)
tree190b8ec8072f0faeb9a8222409b34c3a82c8d35d /tools
parent82eaae9dbabc9bc3bda1a7df7df73d72dc949ad3 (diff)
[linux] prevent wasting RAM due to memory fragmentation
Diffstat (limited to 'tools')
-rw-r--r--tools/Linux/kodi.sh.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in
index 9fc75dd830..0a00a32034 100644
--- a/tools/Linux/kodi.sh.in
+++ b/tools/Linux/kodi.sh.in
@@ -32,6 +32,9 @@ USERDATA_DIR="${HOME}/.${bin_name}"
# Workaround for high CPU load with nvidia GFX
export __GL_YIELD=USLEEP
+# Fix wasting RAM due to fragmentation
+export MALLOC_MMAP_THRESHOLD_=131072
+
# Check for some options used by this script
while [ "$#" -gt "0" ]