Memory and swap partition for reasons of slow ubuntu speed
Source: Internet
Author: User
Within the reason for the slow speed of ubuntu and the swap partition I often open more than 10 windows and applications at the same time when using ubuntu, sometimes the speed will become very slow, even the system is obviously slow to respond. Generally, the physical memory is insufficient. the system begins to replace the swap on the hard disk...
Within the reason for the slow speed of ubuntu and the swap partition I often open more than 10 windows and applications at the same time when using ubuntu, sometimes the speed will become very slow, even the system is obviously slow to respond. Generally, the physical memory is insufficient. the system begins to replace the swap partition on the hard disk for virtual memory. The speed can be imagined. In ubuntu, not all physical memory is exhausted and swap partitions are used. 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. check swappiness1cat/proc/sys/vm/swappiness2 www.2cto.com # in your system. if not, you should see 602. change the value of swappiness to 101 sudo sysctl vm. swappiness = 10, but this is only temporary modification. after you restart the system, the default value of 60 will be restored. Therefore, you need to do another step: 1 sudo gedit/etc/sysctl. conf adds the following line at the end of this document: 1vm. swappiness = 10 author ?? World
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service