In linux, swap and buffercache are cleaned up because system management in linux increases the number of swap and cache. The following is a summary of how swap is disabled/swap is enabled: view swapon-s Mount point swapswapoff/dev/sda1 mount point swapswapon/dev/sda1... in linux, the number of swap and buffer caches is increased due to system management in linux. Therefore, we need to clear the number of swap and cache. The following is a summary of swap processing to disable/enable swap: view the mount point swapon-s to uninstall swap swapoff/dev/sda1 (Mount point) run the following command to clear the swap swapon/dev/sda1 cache: sync & echo3>/proc/sys/vm/drop_caches & sleep 2 & echo 0>/proc/sys/ vm/drop_caches To free pagecache: echo 1>/proc/sys/vm/drop_caches To free dentries andinodes: echo 2>/proc/sys/vm/drop_caches To free pagecache, dentries and inodes: echo 3>/proc/sys/vm/drop_caches value. The default value is 0 (so we can restore it to 0 after clearing it)
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.