Reply
Thread Tools
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#11
Originally Posted by TheSacredSoul View Post
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 sweet spot will be very much dependent on the ratio between the memory performance and the media performance. That will be drastically different on a standard desktop PC (with very high-speed RAM and pretty slow hard drive media) than on the N900 (with slower RAM and higher-speed flash memory media).

And you've missed the critical '>' in the command you've given there.
 

The Following 3 Users Say Thank You to Rob1n For This Useful Post:
Posts: 10 | Thanked: 5 times | Joined on Mar 2010
#12
Thank you Rob1n. My bad. How do you type > using the n900 keyboard?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#13
Originally Posted by TheSacredSoul View Post
Thank you Rob1n. My bad. How do you type > using the n900 keyboard?
It's in the symbols table - press the blue arrow, then the Sym/Ctrl key above it, then select '>' from the pop-up symbols table.
 

The Following 2 Users Say Thank You to Rob1n For This Useful Post:
Posts: 10 | Thanked: 5 times | Joined on Mar 2010
#14
Thank you once again. You are a live saver. So just to confirm...


echo 60 > /proc/sys/vm/swappiness
 

The Following 2 Users Say Thank You to TheSacredSoul For This Useful Post:
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#15
Originally Posted by TheSacredSoul View Post
Thank you once again. You are a live saver. So just to confirm...


echo 60 > /proc/sys/vm/swappiness
Yep, that's it. You can check the current value by running:

Code:
cat /proc/sys/vm/swappiness
 

The Following 8 Users Say Thank You to Rob1n For This Useful Post:
Posts: 10 | Thanked: 5 times | Joined on Mar 2010
#16
Yep it's 60 Thank you!
 
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#17
Could you tell us how much better does it perform with the new value after some use?
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#18
I have been running my N900 with swappiness 30 for some weeks without any ill side-effect. But it seems that battery-life and device responsiveness have both noticably improved.

BTW, on Diablo OS, the default swappiness value was 1. I'm almost certain that a default value of 100 on the N900 is not the optimal setting for this device at all.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following 5 Users Say Thank You to pycage For This Useful Post:
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#19
Thanks Pycage!
Do you know how to set it so the value will persist after reboot?
 
Posts: 53 | Thanked: 143 times | Joined on Dec 2009 @ Russia
#20
On n900 default value for swappiness is set by /etc/init.d/rcS script somewhere in the last lines.
echo value > /proc/sys/vm/swappiness works until the next reboot. So if you want to change the value permanently you should edit it in rcS script.
 

The Following 5 Users Say Thank You to @SR For This Useful Post:
Reply

Tags
battery


 
Forum Jump


All times are GMT. The time now is 13:56.