2019-04-22, 23:56
(2019-04-11, 16:42)smp1 Wrote: 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.
(2019-04-11, 23:43)smp1 Wrote: If I leave a 4K TV channel playing for a few hours - kodi.bin will progressively use more and more RAM until OOM kicks in (it usually takes 7-8 hours). It takes a bit longer for 1080i channels. This is ridiculous considering that my 1Gb RPi3 used to work for months without a reboot.
This is actually not a memory fragmentation issue - decreasing MALLOC_MMAP_THRESHOLD does pretty much nothing.
It appear to be a memory leak when VAAPI hardware acceleration is used.
With VAAPI hardware acceleration disabled kodi.bin memory usage does not increase over time.
I'm now testing on a Celeron J4105 board with 4Gb of RAM (I added another 2Gb stick since my last post). This is how it looks after a couple of days of running 1080p videos non-stop with VAAPI enabled: