Linux - Как почистить системные кэши - drop caches

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Как почистить системные кэши - drop caches

Очистить pagecache:

  # sync; echo 1 > /proc/sys/vm/drop_caches

Очистить dentrie и inode кэши:

   # sync; echo 2 > /proc/sys/vm/drop_caches

Очистить pagecache, dentrie и inode кэши:

   # sync; echo 3 > /proc/sys/vm/drop_caches


top до очистки:

KiB Mem : 32459628 total,   468856 free,  8893012 used, 23097760 buff/cache

top после очистки

# sync; echo 3 > /proc/sys/vm/drop_caches
KiB Mem : 32459628 total, 20877828 free,  8574600 used,  3007200 buff/cache