2018-01-26, 23:52
(2018-01-26, 23:32)popcornmix Wrote: This is feeling a bit like the music database memory leak we had before in kodi (worked around with MALLOC_MMAP_THRESHOLD_).
It may not be an actual leak, but glibc's malloc heap can get fragmented with certain patterns of allocs/frees.
It feels a bit like the hevc update changed the sizes of some buffers that made things a little worse.
An updated glibc made things a lot worse.
Are you able to run with smaller settings of MALLOC_MMAP_THRESHOLD_ ?
Is LE currently using MALLOC_MMAP_THRESHOLD_=131072? (That is value kodi chose).
Can you try with, say, MALLOC_MMAP_THRESHOLD_=32768
I don't think we're setting this for arm:
https://github.com/LibreELEC/LibreELEC.t...ig#L56-L58
as this fragmentation issue first surfaced on 64-bit systems (PR for change: https://github.com/LibreELEC/LibreELEC.tv/pull/1286)
I'll run some tests with default, large and small values and let you know.