aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjenkins4kodi <jenkins4kodi@users.noreply.github.com>2017-02-23 15:15:32 +0100
committerGitHub <noreply@github.com>2017-02-23 15:15:32 +0100
commit67442841b25a018879f5d9620ad255d689eba631 (patch)
tree190b8ec8072f0faeb9a8222409b34c3a82c8d35d
parent82eaae9dbabc9bc3bda1a7df7df73d72dc949ad3 (diff)
parent41414ac16a0a05b939e48a1e26b6dd898d470fda (diff)
Merge pull request #11730 from wsnipex/mmap_treshold
-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" ]