![]() |
Re: How to set swappiness?
Quote:
|
Re: How to set swappiness?
Quote:
If you chose to edit it on computer then you should first copy it for example in MyDocs using terminal: cp /etc/init.d/rcS /home/user/MyDocs/ Edit it and then copy it back: cp /home/user/MyDocs/rcS /etc/init.d/rcS Be careful not to edit something else in this script as it may result in unbootable device and you would have to reflash firmware to restore it. |
Re: How to set swappiness?
Quote:
|
Re: How to set swappiness?
Quote:
if you move rcS around, make sure it end up with exec permitions. ls -al /etc/init.d/rcS will show rwxr-xr-x (look at the 3 x) will it not work inside MyDocs, but if it loses that permitions, you can set it back with: chmod +x /etc/init.d/rcS you can check it with: ls -al /etc/init.d/rcS |
Re: How to set swappiness?
Hmm. I decided to use midnight commander. easier then expected. I browsed to the folder, tapped edit, searched for "swappiness", changed the 100 to 30, saved it, and rebooted.
cat /proc/sys/vm/swappiness shows 30. Lets see how much of an improvement there is. |
Re: How to set swappiness?
I tried this
echo 0 > /proc/sys/vm/page-cluster in vim /etc/init.d/rcS line 264. guided by this blog http://www.sabi.co.uk/blog/anno05-3rd.html#050923 Seemed to reduce the pressure on VM usage. |
Re: How to set swappiness?
Hey guys i thought ill bring this thread back to life.. i have been using swappiness to 30 past few days..
I dont see any ill effects at all.. and performance seems to have improved a lot .. and battery life by a bit if im not imagining things am running 750 mhz clocked kernel.. |
Re: How to set swappiness?
I have also tested swappiness 30 and page-cluster 0. I'm pretty sure that responsivness has been better. I would be highly interested on possible side-effects on these changes.
btw. is it possible to unload preloaded modest and browserd? .edit I have also seen some nice value tweaks. Have you tried them and what were the results? |
Re: How to set swappiness?
Quote:
http://talk.maemo.org/showthread.php?t=47173&page=2 Did you decide 30 is better? |
Re: How to set swappiness?
I just switched swappiness to 30,... much faster in starting and stopping applications,... just more responsive overall.
To give a comparison, Ubuntu defaults to a swapiness value of 60. On some server systems, where a large program is going to remain in memory while other tasks are being performed, a swappiness value of 100 can be advisable, but 60 is the sweet spot for desktop/server hybrid use (which is why they use that). For most desktop use, with a decent amount of RAM, you want to have a swappiness setting of 10 on Ubuntu systems... The trade off is having enough virtual memory for keeping application that are idle running and happy, versus having too much being pushed to virtual memory. With flash memory, it has limited read-write cycles, even with modern level wearing stuff going on, so lower swappiness will help the system's flash memory lifespan. For the N900, because it has flash storage, a setting of 60 is probably too much. And since flash memory's faster than disk, a 30 is proabably about right for the N900. Setting it too low (like a 0 or a 1) might possibly effect some daemons (Like phone related stuff) running in the background that we might not be aware of. But overall, I agree that a 100 is way out of line. Running at 30 makes it seem like a whole new device. |
All times are GMT. The time now is 06:32. |
vBulletin® Version 3.8.8