How do I clear swap memory in UNIX?

Khang Lê

New member
How do I clear swap memory in UNIX?
Answer
How to Clear RAM Memory Cache, Buffer and Swap Space on Linux
  1. Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches.
  2. Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches.
  3. Clear PageCache, dentries and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches. …
  4. sync will flush the file system buffer. Command Separated by “;” run sequentially.
6 июн. 2015 г.
 

Tìm kiếm

Back
Top