Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kodi: set MALLOC_MMAP_THRESHOLD_=8192 for aarch64 kernels #3382

Merged
merged 1 commit into from Apr 3, 2019

Conversation

@kszaq
Copy link
Contributor

commented Mar 26, 2019

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.

Tests for arm userspace (albeit with arm kernel) were done by @MilhouseVH and 512k is not a good choice: https://forum.kodi.tv/showthread.php?tid=298461&pid=2696616#pid2696616
I suspect that this would also be the case even if kernel is aarch64. My initial, completely non-scientific tests show lower Kodi memory usage after starting (83M vs 55M) and after playing a few videos (ca. 200M vs 85M).

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.
@kszaq

This comment has been minimized.

Copy link
Contributor Author

commented Mar 29, 2019

I've been running this for a few days on my aarch64-kernel device with no drawbacks. I think additional tunables mentioned by @Kwiboo can be PRd separately after testing.

@chewitt chewitt merged commit 48c24ea into LibreELEC:master Apr 3, 2019
@kszaq kszaq deleted the kszaq:arm_mmap_threshold branch Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.