Clearing caches from memory
From version 2.6.16 Linux kernel has a tunable parameter named /proc/sys/vm/drop_caches
If you want to force to clear pagecaches from memory use:
echo 1 > /proc/sys/vm/drop_caches
If you want to clear dentry and inode caches from memory:
echo 2 > /proc/sys/vm/drop_caches
and if you want to clear both of the pagecaches and dentry and inode caches just use:
echo 3 > /proc/sys/vm/drop_caches
In order to make sure all cached objects are freed you must execute the sync command first.
Читайте також:
- Пошук великих файлів, find, ls, du
- Howto install Postfix and SASL (Debian, Ubuntu)
- Wrong charset, conversion from `utf-8' to `windows-1251' is not allowed chroot
- Веб-камера Ricoh VGP-VCC5 в linux
- Перевірка С-програм під Linux на витоки пам'яті
- Howto install and use usb modem, as example "mts connect", in debian linux
- Apache: No space left on device: Couldn't create accept lock
- How To capture video from tv-tuner card via mencoder
- How To quick generate openssl certificate signing request
- MemcachedKeyLengthError: Key length is > 250