lowmemorykiller vs OOM killer
asked 2016-06-27 11:46:05 +0200
![this post is marked as community wiki](/m/default/media/images/wiki.png?v=4)
This post is a wiki. Anyone with karma >75 is welcome to improve it.
I see a lot of people here or at TMO talking about better multitasking with SfOS 2.0.2.45 (12+ apps without OOM kills) but I wasn't able to confirm that. So I looked a bit deeper and noticed people telling about better multitasking aren't using the Andoid runtime but I am using it. Then I found this question, which asked about disabling the lowmemorykiller. Thinking about it I realized that the lowmemorykiller is an Android thing, on Linux systems the same job is done by the OOM killer. So I disabled the lowmemorykiller and since I did that I didn't have a single OOM kill while running more apps simultaneously than ever before:
[nemo@Sailfish ~]$ dmesg | grep -i lowemorykiller
[nemo@Sailfish ~]$ dmesg | grep -i OOM
[nemo@Sailfish ~]$ uptime
10:43:56 up 2 days, 18:37, 1 user, load average: 0.07, 0.25, 0.50
My conclusion from this is that the lowmemorykiller is heavily tuned for Androids single tasking environment and just behaves badly in multitasking environments like SailfishOS. I would even go that far to say the lowmemorykiller should be removed from the kernel of SailfishOS (and that's why I mark this as a bug).
@V10lator, How did you get OOM killer installed on the Jolla? Is it there by default? How exactly did you deactivate lowmemorykiller and replace it with OOM killer?
bennypr0fane ( 2016-11-17 19:53:32 +0200 )edit