Drop caches in Linux

Posted by BerserkEVA on Server Fault See other posts from Server Fault or by BerserkEVA
Published on 2013-11-07T09:16:08Z Indexed on 2013/11/07 9:57 UTC
Read the original article Hit count: 157

Filed under:
|
|

I have an embedded Geode-based application server with 512MB RAM and I'm about to try to maximize free memory during applications workload, which uses MySQL database 5.5 with InnoDB quite aggressively.

As part of the whole optimization I'd want to introduce

echo 1 > /proc/sys/vm/drop_caches
sleep 5
echo 0 > /proc/sys/vm/drop_caches

in crontab.

How often is it safe to execute something like this?

Any other observation/suggestion is welcome.

© Server Fault or respective owner

Related posts about linux

Related posts about memory