diff options
author | wsnipex <wsnipex@a1.net> | 2017-02-22 09:22:22 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2017-02-22 09:22:22 +0100 |
commit | b52e5ab9b01aedbadf6780249a48620b0c125698 (patch) | |
tree | f49bdd9ff8b4080f50804f0be19188782d52346d /tools/Linux | |
parent | 755d7db3e838b142ccf0ecda6e117df4d19d2b86 (diff) |
[linux] prevent wasting RAM due to memory fragmentation
Diffstat (limited to 'tools/Linux')
-rw-r--r-- | tools/Linux/kodi.sh.in | 3 |
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" ] |