We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

applications shut down (eg. media player)

asked 2016-01-17 10:11:59 +0300

Marius gravatar image

updated 2016-01-17 10:24:53 +0300

objectifnul gravatar image

Since SFOS 1.1.9 Sailfish shuts down unused applications automatically. In some cases it is a quite annoying think eg. it shuts down media player when I write email (and listen to the music) or so. Is it possible to give some applications higher priority making jolla shutting them down less often? Cheers, Mariusz

add a comment

2 Answers

Sort by » oldest newest most voted
3

answered 2016-01-17 13:39:05 +0300

leszek gravatar image

updated 2016-01-17 13:40:13 +0300

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

link

Comments

It should be done every time of opening app, isn't it?

AliN ( 2016-01-17 19:05:14 +0300 )

Yeah exactly.

leszek ( 2016-01-17 19:07:41 +0300 )

Is this what's going on to keep the phone app alive at all times?

nthn ( 2016-01-17 19:29:27 +0300 )

Yes exactly though it might be in a group of processes that have a certain priority set (cgroups)

leszek ( 2016-01-17 19:33:11 +0300 )
add a comment
0

answered 2016-01-18 12:07:30 +0300

Marius gravatar image

Maybe, at least, if application is closed by OOM killer, it should restart with the last configuration? Looking again for the album I have been listening to before the email arrived is additionally annoying...

link

Comments

I think this needs app changes or a big multitasking change which could do a suspend to disk for a process. Though that might eat up a lot of internal space.

leszek ( 2016-01-19 11:09:10 +0300 )
add a comment
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2016-01-17 10:11:59 +0300

Seen: 384 times

Last updated: Jan 18 '16