kodi: set MALLOC_MMAP_THRESHOLD_=8192 for aarch64 kernels

Currently there are no targets that use aarch64 userspace - they run aarch64 kernel
and arm userspace. Make them use MALLOC_MMAP_THRESHOLD_=8192 which greatly helps
to lower memory fragmentation.
This commit is contained in:
kszaq 2019-03-26 16:09:38 +01:00
parent 5ccaa745e2
commit 6ddfbd57cb

View File

@ -34,7 +34,7 @@ KODI_ARGS=""
echo "KODI_ARGS=\"$KODI_ARGS\"" > /run/libreelec/kodi.conf
if [ "$(uname -m)" = "x86_64" -o "$(uname -m)" = "aarch64" ]; then
if [ "$(uname -m)" = "x86_64" ]; then
echo "MALLOC_MMAP_THRESHOLD_=524288" >> /run/libreelec/kodi.conf
else #arm
echo "MALLOC_MMAP_THRESHOLD_=8192" >> /run/libreelec/kodi.conf