FastNetMon

Tuesday 2 February 2010

Фича Линукса при очистке кэшей посредством: echo 3 > /proc/sys/vm/drop_caches

Последнее время я стал замечать, что команда:
echo 3 > /proc/sys/vm/drop_caches
не очищает страничный кэш на нагруженных хостинг-серверах. Чем это может быть вызвано?

А вот чем:

This is a non-destructive operation and will only free things that are completely unused. Dirty objects will continue to be in use until written out to disk and are not freeable. If you run "sync" first to flush them out to disk, these drop operations will tend to free more memory.


То есть активный, используемый в данный момент кэш это не затрагивает. Так что будьте добры отключить весь свой софт предварительно.

(с) http://linux-mm.org/Drop_Caches

No comments :

Post a Comment

Note: only a member of this blog may post a comment.