maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [SFOS][1.1.0.27][OOM] The death of multitasking? (https://talk.maemo.org/showthread.php?t=94358)

korppi 2014-12-25 16:37

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Quote:

Originally Posted by llelectronics (Post 1453836)
Digged around a little bit and found the config to tweak the OOMKiller behavior.
At least for my workflow it now allows opening up more apps than before before OOMKiller kicks in and kills some.

Made a thread on together jolla open for discussion: https://together.jolla.com/question/...t_ratio-value/

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"

padmaraj.ravi 2014-12-25 18:03

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Very sad to hear this .The last modern OS to have true multitasking is also now going the android way.True multitasking was one of the few differentiars for jolla. Many people avoid android and ios only for this particular reason - unreliable app behaviour .People like me care more for real multitasking even more than openness.Why cant it simple give out a warning instead of killing apps..

synt 2014-12-25 18:07

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Have you used the zramcfg in previous versions? I found it still affects Vaarainjärvi if its installed(checked with swapon -s) and after removing it I've had 0 task killing problems even with a lot of applications open. Just a thought. :)

nodevel 2014-12-25 18:18

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Quote:

Originally Posted by padmaraj.ravi (Post 1453871)
Why cant it simple give out a warning instead of killing apps..

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.

korppi 2014-12-25 18:25

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Quote:

Originally Posted by nodevel (Post 1453873)
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.

Well it's not oom-killer what kills the apps. That is why the swappiness thing works, just try it...

Kernel is just not aggressive enough in swapping.

llelectronics 2014-12-25 19:29

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Quote:

Originally Posted by korppi (Post 1453867)
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"

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)

korppi 2014-12-25 20:10

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Quote:

Originally Posted by llelectronics (Post 1453881)
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)

https://www.kernel.org/doc/Documenta...stems/proc.txt
CommitLimit: ...

After testing your solution again it seems it is doing something to help anyway. Both of are solutions together are even more helpfull to situation.

You should put over 100 though.
I did "echo 120 > /proc/sys/vm/overcommit_ratio" .
and
"echo 99 > /proc/sys/vm/swappiness"

Manatus 2014-12-25 21:44

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Quote:

Originally Posted by BluesLee (Post 1453834)
Code:

cd /media/sdcard/*/swapfile
dd if=/dev/zero of=swapfile bs=1M count=1024
mkswap swapfile
swapon swapfile

With this additional swap i don't have any issues since 24 hours. I will probably add a line to fstab.

Damn, if one is using btrfs on sdcard already, btrfs-swapon would be required. :(

ste-phan 2014-12-26 00:16

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Even the calculator is being closed automatically, very handy when one wants to incorporate some figures in an emaill.

Drawer, meet Jolla.

padmaraj.ravi 2014-12-26 04:29

Re: [SFOS][1.1.0.27][OOM] The death of multitasking?
 
Quote:

Originally Posted by ste-phan (Post 1453908)

Drawer, meet Jolla.

I was seriously contemplating Jolla and BB10 .Here in india Jolla and BB Z10 are in the same price band of about 16K. Now i am left with BB10 as my only choice .Though BB10 limits apps to 8 ,it never closes them as per my knowledge.


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

vBulletin® Version 3.8.8