Reply
Thread Tools
Posts: 95 | Thanked: 66 times | Joined on Mar 2012
#1
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
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#2
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.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.

Last edited by sixwheeledbeast; 2013-01-30 at 17:41.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 95 | Thanked: 66 times | Joined on Mar 2012
#3
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's Avatar
Posts: 387 | Thanked: 1,700 times | Joined on Feb 2010 @ Cambridge, MA, USA
#4
Originally Posted by sixwheeledbeast View Post
[...]
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.
 

The Following User Says Thank You to Ken-Young For This Useful Post:
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#5
Originally Posted by Ken-Young View Post
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
 

The Following 2 Users Say Thank You to stlpaul For This Useful Post:
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#6
Try CSSU-thumb. I don't make calls on my N900 but it's always responsive with thumb due to more free ram.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 2 Users Say Thank You to qwazix For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#7
Originally Posted by stlpaul View Post
Looks like it is case-sensitive, try this one:

http://wiki.maemo.org/Flopswap
Fixed now thanks!

Originally Posted by bozoid View Post
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.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 95 | Thanked: 66 times | Joined on Mar 2012
#8
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
 
Reply

Tags
prevent swap


 
Forum Jump


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