Hi! my current swappiness setting is 60. How can I change it to 10 as this is especially noticeable on computers with relatively low RAM memory (2 GB or less). My RAM is 2GB. I want to change my swappiness setting to 10.

How can I decrease my computer's swap use?
(8 posts) (3 voices)-
Posted 7 years ago #
-
On Ubuntu based system I would edit file:
/etc/sysctl.conf
Please check if have the same on slitazIf not, can you try create one with a line pasted in:
vm.swappiness=10If it doesn't work, and you don't need swap, may see if you uncomment swap partition all together in: /etc/fstab
Posted 7 years ago # -
This can help http://forum.slitaz.org/topic/how-to-modify-temporarily-the-swappiness-parameter#post-37589
Posted 7 years ago # -
Hi Ceel!
echo 50 > /proc/sys/vm/swappiness
it's working temporarily, but I want to do my swappiness setting 30 permanently.
My RAM is 2GB, HDD 500GB, which swappiness parameter will be best for my pc?Posted 7 years ago # -
After you changed the swapness settings, and if you are running slitaz in live mode, from say USB. Why not just saving your new settings to rootfs.gz by using the function you have on right mouse click on desktop menu. Something called Slitaz Live. Choose lzma format. At next reboot you should have your new settings.
Posted 7 years ago # -
Hi aledie! I am using Slitaz 5.0 as not live, using it as HDD installation mode. As I am using this OS as my permanent OS now which I replaced with windows.
Posted 7 years ago # -
Try my solution above!
Edit as root and save the file sysctl.conf, which I check yesterday we also have on slitaz.If you don't need swap at all ( for such small system like slitaz, even 2gb Ramshould be enough you may also just disable swap in fstab file. I had a similar old PC and 2gb ram Pentium m Dell 700m with another heavier Linux Antix, and even there swap was always at 0 usage, so I usually never use swap and have no problems...unless you installed heavy apps like Firefox or libre office.
Posted 7 years ago # -
Hi aledie! Ya its working. I am using Firefox web browser. Thank you.
Posted 7 years ago #
Reply
You must log in to post.