Reply
Thread Tools
Posts: 187 | Thanked: 514 times | Joined on Nov 2014
#1
I've recently been hit by the OOM thing on my Jolla phone (never really found it much of a problem before), with things like Firefox and Chrome frequently being killed rendering a single tab with no other 'foreground' programs open. Not sure what's changed (I have installed a few other things, including daemons), but it is what it is...

I adjusted the ZRAM ratio to 40%, and that seems to have fixed it [1]. I'm sure there is an upper limit beyond which you lose performance, but it's not noticeable at all at 40%. Which leaves me wondering: why is the default (13%) so conservative? And what ratio have others found optimal?

Thanks.

[1] https://together.jolla.com/question/...re-swap-space/
 

The Following 9 Users Say Thank You to MikeHG For This Useful Post:
Posts: 187 | Thanked: 514 times | Joined on Nov 2014
#2
Further use has led me to think 40% risks getting a process called 'system_server' stuck at using ~100% of a core. I'm not sure if it recovers eventually, but if it does it seems to take a long time to do so. On the plus side, you have to be running a fair few things to get it there.

Guess I'll try 30%...

[edit - although note that system_server seems to be part of Alien Dalvik, so if you don't use that, *maybe* 40% will work)

Last edited by MikeHG; 2016-05-13 at 20:17.
 

The Following 4 Users Say Thank You to MikeHG For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#3
The tablet comes preconfigured with 20%, so that is what I am gonna try on the phone too.

btw: how do you know it is system_server utilising the second core?
On my phone htop tells me second core almost always at 100% but system_server does not eat that cpu.
But what makes me curious is: 'ps aux|grep system_server' gives me always a different PID!?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 187 | Thanked: 514 times | Joined on Nov 2014
#4
I just used 'top'... Its owner is 'system'. Not sure about the PID - from memory it was always the same when it went 'haywire' (might even have been '61...' something, but I could be making that up), but now it's showing up as 1704 in 'ps' so I doubt that tells us anything helpful.

Last edited by MikeHG; 2016-05-15 at 09:59.
 

The Following User Says Thank You to MikeHG For This Useful Post:
TMavica's Avatar
Posts: 2,021 | Thanked: 1,060 times | Joined on Apr 2010 @ Hong Kong
#5
Size=$(( $memory_in_kbytes * 1024 * 13 / 100 / num_zram_dev )) ?
__________________
The Glorious Lady T.Mavica
Twitter https://twitter.com/TMavica
 

The Following User Says Thank You to TMavica For This Useful Post:
Posts: 187 | Thanked: 514 times | Joined on Nov 2014
#6
Yep, I adjusted the '13 ' and it works, as evidenced by 'swapon' (as root) and obvious differences in behaviour [edit - you should reboot afterwards - maybe there's some daemon you can restart / file you can 'source' instead, but screw it, you're not running any £multimillion websites on your phone, are you ]

I confess I didn't go down the rabbit hole of working out what it's actually scaling against, but it seems ballpark right if you account for RAM reserved for the kernel / GPU etc. etc. ...

Last edited by MikeHG; 2016-05-15 at 18:16.
 

The Following 4 Users Say Thank You to MikeHG For This Useful Post:
Reply

Tags
jolla, memory, oom-killer, sailfish

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:54.