How to change the Swappiness of your Linux system

 💥💥💥💥💥💥💥💥
Happy New Year
💥💥💥💥💥💥💥💥


In this blog You will learn you how to change the swappiness value of your linux system.

    1. Firstly, check your swappiness by using following command
cat /proc/sys/vm/swappiness
                probably the value is = 60

            2.  To edit this value copy paste the following command
                    
                                      sudo xed /etc/sysctl.conf 

               a new window will appear with text editor.
   
            3. Now add the following line in the bottom of the text file
                     
                          # Decrease swap usage to a more reasonable level
vm.swappiness=10
          4. Now save the text file and exit it. Finaly after restarting your laptop/desktop you will see the changes. To check again follow the first step.

You can watch below video:

https://youtu.be/0MQ_yI-8rmI

                                   

Post a Comment

Previous Post Next Post