Flushing the mysql buffers is as easy as restarting mysql ("sudo service mysql restart" in Maverick). Flushing the OS buffers is also dead easy:
sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"
I have system-monitor gauges on my taskbar showing cpu, memory and disk activity, and its a beautiful thing to see the cache suddenly get wiped :)
No comments:
Post a Comment