Release system memory management of Linux ----------

Purge memory
sync # this command to ensure the integrity of the file system, all unwritten system buffers written to disk, containing the modified i-node, has been delayed fast I / O read and write mapping file
echo 1> / proc / sys / vm / drop_caches # release memory
/
0: not released (the system default)
1: the released page cache
2: dentries and release of inodes
. 3: releasing all cache
/

After echo 0> / proc / sys / vm / drop_caches # Ends release memory allow the system to change it back again automatically allocate memory

When too much memory:
Sync; Sync; Sync; echo 1> / xxxx #sync memory or cache is synchronized to the things inside the disk, sometimes not necessarily success to be repeated

Guess you like

Origin www.cnblogs.com/wangchengshi/p/11231348.html