answered
2016-01-17 13:39:05 +0200
As SailfishOS is based on Linux you can do the following (you need developer mode installed and root [devel-su] access for this):
Users and system administrators have often asked for ways to control the behavior of the OOM killer. To facilitate control, the /proc/<pid>/oom_adj knob was introduced to save important processes in the system from being killed, and define an order of processes to be killed. The possible values of oom_adj range from -17 to +15. The higher the score, more likely the associated process is to be killed by OOM-killer. If oom_adj is set to -17, the process is not considered for OOM-killing.
Find the original article here: http://lwn.net/Articles/317814/
(I used code tagging here for the quote as otherweise some bits would be removed from the quote)
PS: PID is the Process ID you can get with ps aux | grep processname or from top