maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   q: Prevent specific apps from being swapped out of RAM/mem? (https://talk.maemo.org/showthread.php?t=88879)

bozoid 2013-01-30 14:44

q: Prevent specific apps from being swapped out of RAM/mem?
 
Hi, any idea how to prevent specific apps from being swapped out of RAM/mem?
I specifically want to do this for the phone app & maybe SMS app.

I've had such cases:
I call myself using a fixed line;
Ringing on fixed line can be heard;
N900 seems to freeze or slow a bit for about 1-3 seconds;
N900 rings/vibrates later.

I've done some other things like making my ring tone smaller, not having pictures on caller's contact, etc... anything to prevent a slower ring.

When paired with a BT headset, it's even slower.
Minimum 3 seconds... could be 4-5.

It's not a big issue but I'd like to optimize this & hear calls come in on the first ring (operator network perspective).

Some related stuff (not available in Linux flavors...):

http://www.linuxquestions.org/questi...d-sgid-258719/

http://en.wikipedia.org/wiki/Sticky_bit

http://serverfault.com/questions/295...-going-to-swap

Thanks & best regards,

kh

sixwheeledbeast 2013-01-30 17:38

Re: q: Prevent specific apps from being swapped out of RAM/mem?
 
Does this happen after a period of uptime?

If so rather than setup a horrible cgroups type thing (like speedpatch)

It best to just refresh the swap.
Have a look at FlopSwap in my sig.

Also bear in mind the first one/two rings are sometimes created by the exchange when you call a mobile.

bozoid 2013-01-31 02:15

Re: q: Prevent specific apps from being swapped out of RAM/mem?
 
Thanks!
It happens after some (hours) idle time or heavy use (modest/email, 5 microb, opera, leafpad, file man, yappari, all at the same duration).
I took some months recently to build a completely new image taking care to keep as little as possible daemons, widgets n pluggins loaded (scaned thru every postinst file and files dumped into /etc/event.d/).
Yet to install KP, overclock, etc for specific reasons...
Looked at speed patch n swap management too (I implemented my own).
The phone app or BT plugins would still take some seconds to load or swap in still.
I figured the best way would be if I could keep only those apps/modules permanently loaded n not swapped out.

kh

Ken-Young 2013-01-31 04:49

Re: q: Prevent specific apps from being swapped out of RAM/mem?
 
Quote:

Originally Posted by sixwheeledbeast (Post 1319170)
[...]
Have a look at FlopSwap in my sig.
[...]

Sadly, the FlopSwap page appears to have been deleted. Clicking on that link takes you to an empty page.

stlpaul 2013-01-31 04:54

Re: q: Prevent specific apps from being swapped out of RAM/mem?
 
Quote:

Originally Posted by Ken-Young (Post 1319310)
Sadly, the FlopSwap page appears to have been deleted. Clicking on that link takes you to an empty page.

Looks like it is case-sensitive, try this one:

http://wiki.maemo.org/Flopswap

qwazix 2013-01-31 06:29

Re: q: Prevent specific apps from being swapped out of RAM/mem?
 
Try CSSU-thumb. I don't make calls on my N900 but it's always responsive with thumb due to more free ram.

sixwheeledbeast 2013-01-31 19:04

Re: q: Prevent specific apps from being swapped out of RAM/mem?
 
Quote:

Originally Posted by stlpaul (Post 1319311)
Looks like it is case-sensitive, try this one:

http://wiki.maemo.org/Flopswap

Fixed now thanks! :o

Quote:

Originally Posted by bozoid (Post 1319295)
It happens after some (hours) idle time or heavy use (modest/email, 5 microb, opera, leafpad, file man, yappari, all at the same duration).
I took some months recently to build a completely new image taking care to keep as little as possible daemons, widgets n pluggins loaded (scaned thru every postinst file and files dumped into /etc/event.d/).
Yet to install KP, overclock, etc for specific reasons...
Looked at speed patch n swap management too (I implemented my own).
The phone app or BT plugins would still take some seconds to load or swap in still.
I figured the best way would be if I could keep only those apps/modules permanently loaded n not swapped out.

IMO the speedpatch method isn't great.
Better to refresh the swap on the whole device, plenty of research as been done in the past. Take compcache for example good idea but not helpful on our device.

KP without overclocking will help and will reduce power consumption due to smartreflex.

Tweaking Swapolube settings may help.

Still think two swaps on uSD is the way to go (Flopswap style) and thumb will help a lot if your happy with cssu-testing.

bozoid 2013-02-01 15:28

Re: q: Prevent specific apps from being swapped out of RAM/mem?
 
CSSU thumb sounds closer to what I need next to having the phone app employing daemon mode & mlockall.....
Thanks all for the opinion!

I'll have to get a spare unit ready to test CSSU thumb...
After I fix some USB port loose issue & screen doesn't respond issue & some other stuff...

kh


All times are GMT. The time now is 15:30.

vBulletin® Version 3.8.8