Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've seen sysadmins playing with /proc/sys/vm/drop_caches (echo 3 into this file from a cron) in order to free caches. Is there a real interrest in doing this? Aren't the clean caches reclaimed when needed?

Thanks.

share|improve this question

migrated from superuser.com Feb 24 '12 at 6:25

This question came from our site for computer enthusiasts and power users.

1 Answer 1

In normal operation it's not necessary. The normal reason for doing it is to be able to test the performance of some program when it is running with a cold cache.

share|improve this answer
2  
To add, having the caches freed periodically can actually hurt system performance, since often-used files will have to be read from disk again and again. Essentially, free memory is wasted memory (if the caching is implemented correctly). –  grawity Feb 21 '12 at 15:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.