mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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:
parent
5990080273
commit
d51e92c52d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user