2019-04-11, 16:42
I just started using Generic builds a few days ago and I noticed an issue that appear to be a memory fragmentation that never happened with RPi builds.
The memory usage of kodi.bin increase over time and it will eventually restart due to an OOM killer.
I did a quick search and found this thread where it is suggested that MALLOC_MMAP_THRESHOLD_=131072 should fix the memory fragmentation issue for x86_64 (I'm currently testing with this setting, no issues so far). Also, this Kodi commit that set MALLOC_MMAP_THRESHOLD to 131072 was added back then.
However, this LE commit seem to ignore the default Kodi setting and set MALLOC_MMAP_THRESHOLD to 524288. Any idea why LE does not use 131072?
The memory usage of kodi.bin increase over time and it will eventually restart due to an OOM killer.
I did a quick search and found this thread where it is suggested that MALLOC_MMAP_THRESHOLD_=131072 should fix the memory fragmentation issue for x86_64 (I'm currently testing with this setting, no issues so far). Also, this Kodi commit that set MALLOC_MMAP_THRESHOLD to 131072 was added back then.
However, this LE commit seem to ignore the default Kodi setting and set MALLOC_MMAP_THRESHOLD to 524288. Any idea why LE does not use 131072?