This tip helps to increase performance of your Linux system by reducing swappiness.
|
If you have performance issue in your Linux based system, then here is the answer for that. (I tried it on Ubuntu and fedora Linux distro, And its working well on both). You can check the swappiness using : >_cat /proc/sys/vm/swappiness You can decrease this value to reduce swappiness in your system Way 1: Reduce swappiness on the run. (It will reset to default after reboot.) >_ sudo sysctl vm.swappiness=10 Way 2: Reduce swappiness through configuration. Open file /etc/sysctl.conf as root and place the below line in this file and save it. you need to restart your session to activate this configuration. While installing new applications which need more memory, increase the swappiness. Otherwise the system will break the installation. References : http://askubuntu.com/questions/103915/how-do-i-configure-swappiness https://help.ubuntu.com/community/SwapFaq |