Add userspace OOM service by default
This is mainly a discussion question.
The problem: Many of our phones have very limited amounts of memory. The kernel OOM apparently doesn't keep the device stable when it does run out of memory. It will either not act even though the device takes multiple minutes for even a basic console command, or it will not act at all and the device will just freeze completely.
The solution: Desktop systems often come with a userspace OOM daemon which kills processes early enough for the system not to become unresponsive or freeze completely.
In my case I have installed earlyoom
and have had no freezes ever since. It took me a long time to figure out that my system was just running out of memory, because it is pretty hard to get info out of a completely frozen system. Adding a userspace OOM daemon should help make our devices more reliable and give us less headache from debugging freezing issues.
What are peoples thoughts on this? Do you also use a userspace OOM daemon? Do you think it could cause any problems?