![]() |
2014-12-27
, 00:51
|
Posts: 1,746 |
Thanked: 1,832 times |
Joined on Dec 2010
|
#51
|
The Following User Says Thank You to m4r0v3r For This Useful Post: | ||
![]() |
2014-12-27
, 01:34
|
Posts: 205 |
Thanked: 389 times |
Joined on Nov 2009
|
#52
|
![]() |
2014-12-27
, 11:59
|
|
Posts: 548 |
Thanked: 562 times |
Joined on Aug 2011
@ Germany
|
#53
|
The only tweak I've made is to increase vm.swappiness to 60 in /etc/sysctl.d/vm.conf file.
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.
![]() |
2014-12-27
, 12:55
|
|
Posts: 764 |
Thanked: 2,889 times |
Joined on Jun 2014
|
#54
|
The Following User Says Thank You to nthn For This Useful Post: | ||
![]() |
2014-12-29
, 02:11
|
Posts: 205 |
Thanked: 389 times |
Joined on Nov 2009
|
#56
|
![]() |
2014-12-29
, 02:58
|
|
Posts: 1,055 |
Thanked: 4,107 times |
Joined on Oct 2009
@ Norway
|
#57
|
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?
The Following 14 Users Say Thank You to w00t For This Useful Post: | ||
aegis, eekkelund, Jordi, juiceme, Manatus, mariusmssj, mattaustin, minimos, Nekron, OVK, rcolistete, salyavin, sbock, Wikiwide |
![]() |
2014-12-29
, 03:09
|
|
Posts: 1,055 |
Thanked: 4,107 times |
Joined on Oct 2009
@ Norway
|
#58
|
I used to have issues with lag at times, but nothing to serious the device would stop functioning.
![]() |
2015-07-14
, 01:50
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#59
|
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
echo '9999' > /sys/module/lowmemorykiller/parameters/adj echo '1' > /sys/module/lowmemorykiller/parameters/minfree
![]() |
2017-03-20
, 11:31
|
Posts: 83 |
Thanked: 91 times |
Joined on Nov 2015
@ NIgeria
|
#60
|
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:
your process will die if it eats all swap+ram, but other apps stay aliveCode:echo '9999' > /sys/module/lowmemorykiller/parameters/adj echo '1' > /sys/module/lowmemorykiller/parameters/minfree
thanks to nieldk