Notices


Reply
Thread Tools
Posts: 1,581 | Thanked: 1,242 times | Joined on Dec 2010
#51
they can put this stuff in the utilities section in the settings
 

The Following User Says Thank You to m4r0v3r For This Useful Post:
Posts: 204 | Thanked: 374 times | Joined on Nov 2009
#52
Yea I think that's a good place for it.

messing with settings described in this thread seems to have totally fixed it for me. Have gpodder, tweetian, tt-rss, android weechat, meecast, and I can launch the browser from tt-rss to read a full article and I have no issues at all, nothing is killed.
 

The Following 3 Users Say Thank You to salyavin For This Useful Post:
willi6868's Avatar
Posts: 536 | Thanked: 500 times | Joined on Aug 2011 @ Germany
#53
Originally Posted by synt View Post
The only tweak I've made is to increase vm.swappiness to 60 in /etc/sysctl.d/vm.conf file.
I also tweaked this value now and it seems to work quite well till now.

BTW if someone doesn't follow the TJC thread - a Jolla employee just posted an comment:

Originally Posted by tigeli
Ok, in short... you can play with these:
  • /sys/module/lowmemorykiller/parameters/adj (0,58,117,529,1000)
  • /sys/module/lowmemorykiller/parameters/minfree (4096,6144,8192,12288,20000)
  • /proc/sys/vm/extra_free_kbytes (16384)

First sets oom_score-values for group of apps running inside of those values, second sets the values how much memory should be always available before killing apps in that group starts. Third sets the value of how much memory should always kept free.

Example.. apps having oom_score between 0 and 57 will not be killed before the memory has gone below 40964 = 16384kB. Apps having oom_score 1000 will be killed if there is less than 200004 = 80000kB available memory.
Maybe someone could provide some nice values for fine tuning.
__________________
Nokia N80 -> Nokia N900 -> Nokia N9 -> Jolla Phone & Jolla Tablet
 

The Following 8 Users Say Thank You to willi6868 For This Useful Post:
nthn's Avatar
Posts: 518 | Thanked: 1,753 times | Joined on Jun 2014
#54
If you want something added to the Utilities to change OOM stuff: https://github.com/sailfishos/sailfish-utilities
 

The Following User Says Thank You to nthn For This Useful Post:
Posts: 488 | Thanked: 638 times | Joined on Jun 2011
#55
^nothing _new_ ...
__________________
N9 - My Precious
 

The Following User Says Thank You to catbus For This Useful Post:
Posts: 204 | Thanked: 374 times | Joined on Nov 2009
#56
Had one app close today and gave up and did
"echo "0,0,0,0,0" > /sys/module/lowmemorykiller/parameters/minfree"
from https://together.jolla.com/question/...#comment-73891
 

The Following 2 Users Say Thank You to salyavin For This Useful Post:
w00t's Avatar
Posts: 1,055 | Thanked: 4,103 times | Joined on Oct 2009 @ Norway
#57
Originally Posted by ste-phan View Post
So there seems to be a major change with regard to Android programs. I thought previously, Android Myriad Dalvik just had 512MB RAM at max and the rest would remain reserved for Jolla?
There's been a lot of changes. One of them is that Android is now subject to the same behaviour as the rest of the device, whereas previously, Android was allowed to kill off everything else and swap the device into oblivion (or reboot), which serves to make the behavior a bit more visible for people who use a lot of Android applications.
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.
 

The Following 14 Users Say Thank You to w00t For This Useful Post:
w00t's Avatar
Posts: 1,055 | Thanked: 4,103 times | Joined on Oct 2009 @ Norway
#58
Originally Posted by m4r0v3r View Post
I used to have issues with lag at times, but nothing to serious the device would stop functioning.
The problem is that everyone is not you. Different people use their devices in different ways, run different software, emphasize different features.

One favorite bug as an example for this that I helped fix a few months ago was a SQL query in Messages taking well over a second for someone (freezing the UI the whole time), whereas for me it didn't even take more than 20ms. Something on his device was clearly off. I never really looked into that part, rather hard to do remotely, but I did fix the query: https://github.com/nemomobile/libcom...a02b61a74a3192
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.
 

The Following 17 Users Say Thank You to w00t For This Useful Post:
Posts: 2,076 | Thanked: 3,251 times | Joined on Feb 2011
#59
Originally Posted by salyavin View Post
Had one app close today and gave up and did
"echo "0,0,0,0,0" > /sys/module/lowmemorykiller/parameters/minfree"
from https://together.jolla.com/question/...#comment-73891
Has anyone figured out how to properly kill/disable lowmemorykiller? Neither tweaking overcommit_ratio, nor this minfree trick stops the lowmemorykiller from killing cc1plus when compiling on device.

Ok, from my testing this seems to kill oom-killer for good:
Code:
echo '9999' > /sys/module/lowmemorykiller/parameters/adj
echo '1' > /sys/module/lowmemorykiller/parameters/minfree
your process will die if it eats all swap+ram, but other apps stay alive
thanks to nieldk

Last edited by szopin; 2015-07-14 at 18:35.
 

The Following 5 Users Say Thank You to szopin For This Useful Post:
Posts: 67 | Thanked: 52 times | Joined on Nov 2015 @ NIgeria
#60
Originally Posted by szopin View Post
Has anyone figured out how to properly kill/disable lowmemorykiller? Neither tweaking overcommit_ratio, nor this minfree trick stops the lowmemorykiller from killing cc1plus when compiling on device.

Ok, from my testing this seems to kill oom-killer for good:
Code:
echo '9999' > /sys/module/lowmemorykiller/parameters/adj
echo '1' > /sys/module/lowmemorykiller/parameters/minfree
your process will die if it eats all swap+ram, but other apps stay alive
thanks to nieldk
This commands might have worked previously but on 2.0.5.6 I still get apps being killed and some lagging behavior at times.
What are the commands to revert this please?
__________________
Sony C6 > Sony Ericsson K310 > Sony Ericsson K750 > N70 > N73 > N81 > N82 > N79 > E7 > N9 > Jolla
 

The Following 2 Users Say Thank You to dameceno For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:34.