This question already has an answer here:

Is there any command that by using I can clean the cache in RHEL?
I used this command:
sync; echo 3 > /proc/sys/vm/drop_caches
but it didn't work.
|
This question already has an answer here:
Is there any command that by using I can clean the cache in RHEL? I used this command:
but it didn't work. |
||||
marked as duplicate by derobert, Satō Katsura, countermode, GAD3R, roaima Feb 22 '17 at 10:37This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
||||
|
Try |
|||||
|
|
Depending on what you want to do you can use 1,2 or 3 from https://www.kernel.org/doc/Documentation/sysctl/vm.txt drop_caches Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free. To free pagecache:
To free dentries and inodes:
To free pagecache, dentries and inodes:
As this is a non-destructive operation and dirty objects are not freeable, the user should run 'sync' first. |
|||
|
|
didn't work– daisy Dec 15 '12 at 14:30