The Following User Says Thank You to korppi For This Useful Post: | ||
![]() |
2014-12-25
, 18:03
|
Posts: 69 |
Thanked: 195 times |
Joined on Jan 2013
@ kerala
|
#12
|
![]() |
2014-12-25
, 18:07
|
Posts: 22 |
Thanked: 51 times |
Joined on Dec 2014
|
#13
|
![]() |
2014-12-25
, 18:18
|
Posts: 752 |
Thanked: 2,808 times |
Joined on Jan 2011
@ Czech Republic
|
#14
|
![]() |
2014-12-25
, 18:25
|
Posts: 11 |
Thanked: 54 times |
Joined on Dec 2013
|
#15
|
Exactly my thought. If they feel like it is the system's responsibility to provide smooth app experience (which I am not sure about - I think it is my responsibility to run as many apps as I consider comfortable), then they should warn before launching another app, not kill the other ones.
That is exactly how webOS did it - it warned about 'Too many cards open, close some of them to launch this app' when running low on RAM.
![]() |
2014-12-25
, 19:29
|
Posts: 426 |
Thanked: 1,812 times |
Joined on Dec 2013
|
#16
|
This won't help you because /proc/sys/vm/overcommit_memory is
set to 1. And kernel docs say that value of /proc/sys/vm/overcommit_ratio is ignored if /proc/sys/vm/overcommit_memory is != 2.
But you can increase swappiness.
"echo 99 > /proc/sys/vm/swappiness"
![]() |
2014-12-25
, 20:10
|
Posts: 11 |
Thanked: 54 times |
Joined on Dec 2013
|
#17
|
Either the kernel docs are wrong here or I am just a little drunk from christmas yet but I can see the difference when changing the overcommit_ratio. (Where did you find that it only works for overcommit_memory 2 ?)
Also it makes no sense that it is set then by default if it isn't even used. So I suspect it is used. (also I can start a lot more apps with it set to 90 so it must have an effect)
The Following 3 Users Say Thank You to korppi For This Useful Post: | ||
![]() |
2014-12-25
, 21:44
|
Posts: 334 |
Thanked: 616 times |
Joined on Sep 2010
|
#18
|
With this additional swap i don't have any issues since 24 hours. I will probably add a line to fstab.Code:cd /media/sdcard/*/swapfile dd if=/dev/zero of=swapfile bs=1M count=1024 mkswap swapfile swapon swapfile
![]() |
2014-12-26
, 00:16
|
|
Posts: 1,197 |
Thanked: 2,710 times |
Joined on Jan 2010
@ Hanoi
|
#19
|
![]() |
2014-12-26
, 04:29
|
Posts: 69 |
Thanked: 195 times |
Joined on Jan 2013
@ kerala
|
#20
|
The Following User Says Thank You to padmaraj.ravi For This Useful Post: | ||
set to 1. And kernel docs say that value of /proc/sys/vm/overcommit_ratio is ignored if /proc/sys/vm/overcommit_memory is != 2.
But you can increase swappiness.
"echo 99 > /proc/sys/vm/swappiness"
Last edited by korppi; 2014-12-25 at 17:30.