內容目錄
手動回收 Cached Memory
有下述兩種方式可以手動做回收記憶體:
- 參考此文: 回收 Linux cached memory
echo 1 > /proc/sys/vm/drop_caches
or
sysctl -w vm.drop_caches=1 - 之前 AceLan 長輩指點的方式
# And free up caches
#
echo Freeing the page cache:
echo 1 > /proc/sys/vm/drop_caches
echo Free dentries and inodes:
echo 2 > /proc/sys/vm/drop_caches
echo Free the page cache, dentries and the inodes:
echo 3 > /proc/sys/vm/drop_caches
相關網頁
Hits: 91