|
2014-12-26
, 18:06
|
Posts: 1,746 |
Thanked: 1,832 times |
Joined on Dec 2010
|
#42
|
More RAM??? Whatever the hell for!? My main PC, running Debian Wheezy, 1 GB RAM and no swap, idle with just the OS, background processes and SysMon running, uses 140 MB RAM. My Jolla, allegedly optimised for running on low resources, uses 420 MB in the same configuration. HOW COME???
It's not more RAM we need. It's less bloat.
|
2014-12-26
, 18:38
|
Posts: 22 |
Thanked: 51 times |
Joined on Dec 2014
|
#43
|
|
2014-12-26
, 19:46
|
Posts: 205 |
Thanked: 389 times |
Joined on Nov 2009
|
#44
|
The Following 3 Users Say Thank You to salyavin For This Useful Post: | ||
|
2014-12-26
, 20:52
|
|
Posts: 548 |
Thanked: 562 times |
Joined on Aug 2011
@ Germany
|
#45
|
The only tweak I've made is to increase vm.swappiness to 60 in /etc/sysctl.d/vm.conf file.
The Following 5 Users Say Thank You to willi6868 For This Useful Post: | ||
|
2014-12-26
, 21:20
|
Posts: 205 |
Thanked: 389 times |
Joined on Nov 2009
|
#46
|
|
2014-12-26
, 21:38
|
Posts: 426 |
Thanked: 1,812 times |
Joined on Dec 2013
|
#47
|
A Jolla sailor provided here on TJC some tweaked values to reduce UI lags (with update 9) and he additionally also tweaked some other values in /etc/sysctl.d/vm.conf.
The Following 5 Users Say Thank You to llelectronics For This Useful Post: | ||
|
2014-12-26
, 23:18
|
Posts: 334 |
Thanked: 616 times |
Joined on Sep 2010
|
#48
|
Well, you did not really get it back - you lost up to 200 MB. Zram kicks in before the real swap starts to be used and can usually achieve an up to 50% compression ratio. So a 100 MB zram volume can give you up to 200 MB in-RAM space - basically an extra 100 MB of still fast RAM.
Actually I wonder if that new fancy OOM killer actually takes zram properly into account, as using it should not lead to any noticeable slowdowns. If would be very very wrong if it just lumps it together with normal swap when calculating if it should kill something.
Also, the zram volume size (actually 2x50 MB so that both CPU cores can be used for compression) seems kinda small compared to overall ram size - it is usually advised to use a much bigger amount of ram for zram. Even the N9 that also had just 1 GB of RAM used 256 MB for zram (still called compcache back then - see these nice slides about compcache usage on the N9 and N900).
So I would advice trying to make the overall zram volume size larger to see if it helps with the OOM situation.
The Following User Says Thank You to Manatus For This Useful Post: | ||
|
2014-12-26
, 23:36
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#49
|
|
2014-12-27
, 00:11
|
Posts: 205 |
Thanked: 389 times |
Joined on Nov 2009
|
#50
|
The Following User Says Thank You to salyavin For This Useful Post: | ||
There is no out of memory condition. But low memory killer is way too aggressive. Phone doesn't even swap when it starts to kill apps.
I have 17 apps running. Including 4 different browsers with page open. After these tweaks no OOMs or lowmemory kills yet.
This is what I did:
echo "80" > /proc/sys/vm/swappiness
echo "32 24" > /proc/sys/vm/lowmem_reserve_ratio
echo "100" > /proc/sys/vm/percpu_pagelist_fraction
echo "98304" > /proc/sys/vm/extra_free_kbytes