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
By default it will show the value: 60
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.
vm.swappiness = 10
While installing new applications which need more memory, increase the swappiness. Otherwise the system will break the installation.