Active Topics

 


Reply
Thread Tools
Posts: 10 | Thanked: 5 times | Joined on Mar 2010
#1
I see people discussing changing swappiness but what is the exact way to go about doing it and making it stick at every reboot? Also, I heard you can run swap from the microsd to get a more responsive device?

My phone comes down to a crawl after less then a day of usage. I normally have to repeatedly tap conversations for it to open after a minute so im looking at anything to improve the responsiveness. Thanks for your help!
 

The Following User Says Thank You to TheSacredSoul For This Useful Post:
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#2
swappiness?!?!?

are you referring to swap partition maybe?

what unstable stuff have you installed to your device?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
ToJa92's Avatar
Posts: 1,091 | Thanked: 323 times | Joined on Feb 2010 @ ~
#3
Originally Posted by ossipena View Post
swappiness?!?!?

are you referring to swap partition maybe?

what unstable stuff have you installed to your device?
Read this, there are some info about swappiness: http://kerneltrap.org/node/3000
I suppose Wikipedia also got some info on that subject.
 
Posts: 10 | Thanked: 5 times | Joined on Mar 2010
#4
Thanks for the link... I roughly know whats swappiness after using Andriod with custom ROM's for over a year. I just dont know how to set it on N900. And google isnt much too
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#5
I'd leave it be, it probably has already been optimized.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following User Says Thank You to ossipena For This Useful Post:
Posts: 388 | Thanked: 842 times | Joined on Sep 2009 @ Finland
#6
Originally Posted by ossipena View Post
I'd leave it be, it probably has already been optimized.
Yes, the problem lies somewhere else since slowing down to a crawl in a day isn't normal behavior.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#7
Originally Posted by TheSacredSoul View Post
Thanks for the link... I roughly know whats swappiness after using Andriod with custom ROM's for over a year. I just dont know how to set it on N900. And google isnt much too
Just echo a value to /proc/sys/vm/swappiness (as root). There doesn't appear to be sysctl on the N900, so persisting the changes would be a bit trickier.
 
Posts: 42 | Thanked: 22 times | Joined on Dec 2009
#8
It's /proc/sys/vm/swappiness. As root:
echo "50" > swappiness
will change it, though this won't survive a reboot.
The default is 100, which is the swappiest. You could try lowering it to, say, 50.

You can add a swap partition to your SD card by editing the partitions and adding a Linux swap partition to it (type 82).
For example, add a swap partition of 1GB to the SD. Search the internet for fdisk, swapon, swapoff and mkswap to teach you what to do. You'd turn the SD swap on and the internal swap off.

Please note: this is for information only. Do what you like with your device, but at the risk of making it not work at all. Personally I'd recommend keeping it set up as it is at the moment.
 

The Following 2 Users Say Thank You to wheelybird For This Useful Post:
Posts: 19 | Thanked: 5 times | Joined on Jan 2010 @ canada
#9
Originally Posted by Rob1n View Post
Just echo a value to /proc/sys/vm/swappiness (as root). There doesn't appear to be sysctl on the N900, so persisting the changes would be a bit trickier.
I updated my swappiness a couple months ago... I think I found a spot somewhere in the init scripts... if I recall correctly there was a comment saying to put updates to /proc stuff there... I think... I forget now and don't have the device handy.

I think it defaults to swapiness 100, which I think means "go ahead and swap as much as you want" ... which didn't seem right to me so I changed it to 0... not sure if I've noticed much difference... I should change it back again and see...
 
Posts: 10 | Thanked: 5 times | Joined on Mar 2010
#10
From what I've read, the sweet spot is 60... I just set mine to 60. Shall give it a try. Thanks for your help. And for anyone who wants to know the command is

echo 60 /proc/sys/vm/swappiness
 

The Following User Says Thank You to TheSacredSoul For This Useful Post:
Reply

Tags
battery


 
Forum Jump


All times are GMT. The time now is 23:04.