Modify the ubuntu cache and use it in ubuntu. The value of swappiness is closely related to how to use swap partitions. When swappiness is set to 0, the physical memory is used to the maximum extent, and then the swap space is used. When swappiness is set to 100, the swap partition is actively used, in addition, the data in the memory is promptly moved to the swap space. Two extremes. For ubuntu's default settings, this value is equal to 60. We recommend that you change it to 10. Specifically: 1. view swappiness $ cat/proc/sys/vm/swappiness in your system. if nothing happens, you should see 60 2. change the value of swappiness to 10 $ sudo sysctl vm. swappiness = 10 3. however, this is only temporary modification. After you restart the system, the default value of 60 will be restored. Therefore, you need to perform the following steps: $ gksudo gedit/etc/sysctl. conf adds vm at the end of this document. swappiness = 10