/********************************************************************* * 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