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.
- 0 Comment
- Murat Demirten
- 23 Aug 2008, 17:05
-
You must be login first or sign-up for an account to post comments.
Maybe you should look at these also:
USERBOX
CATEGORIES
MOST READ TODAY
- Syntax highlighting in less
- How to choose the fastest Debian mirror
- Booting from an ISO image using qemu
- Redirecting TCP ports with redir
- Lowercase Table Names in MySQL
- Enabling remote desktop on a VirtualBox Machine
- How to extract a deb package without installing
- Passwordless sudo setup
- Disabling ssh password authentication
- Users with /bin/false shell to login on vsftpd
LAST ADDED
- Using iPhone internet sharing over bluetooth under Linux
- Using USB sound card with amarok
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary
