How to clean up the system memory space under Gnu/linux

Source: Internet
Author: User

/********************************************************************* * Author:samson * date:04/21/2015 * Test PL   Atform: * GCC (Ubuntu 4.8.2-19ubuntu1) 4.8.2 * GNU bash, 4.3.11 (1)-release (X86_64-PC-LINUX-GNU) * *******************************************************************/

After you have opened a lot of memory-intensive programs, after you close these programs, you find that the memory space is still the same as when the application is not closed, so that other applications open when the memory is not enough or very card, then you want to clean up the previous program when the memory occupied by the open, and most of the cache data occupied, So how to clean up the memory? You can use the following steps to clean up your memory:

1. Memory usage before cleanup
Free-h

2. Start cleaning up


Echo 1>/proc/sys/vm/drop_caches

3. Memory usage after cleanup
Free-h


About drop_caches means letting the system clean up the cache of memory pages to get more usable memory.


For a description of the configuration and parameters of the Drop_caches file, please refer to:

Http://www.linuxinsight.com/proc_sys_vm_drop_caches.html

229

How to clean up the system memory space under Gnu/linux

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.