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.
Читайте також:
- Howto install Postfix and SASL (Debian, Ubuntu)
- debian + opera
- Synaptics Touchpad в Linux
- vsftpd /bin/false check_shell=NO pam hack
- How To Integrate ClamAV Into PureFTPd For Virus Scanning On Debian
- 25 серпня - день народження Linux
- Upgrade postgresql-8.3 to postgresql-9.0
- debian встановлення adobe flash player 10 64bit iceweasel (firefox)
- How To capture video from tv-tuner card via mencoder
- xen ssh login: 'stdin: is not a tty'