linux mysql内存使用率<pre>free -m | sed -n '2p' | awk '{print "used mem is "$3"M,total mem is "$2"M,used percent is "$3/$2*100"%"}' </pre>释放所有缓存<pre>echo 3 > /proc/sys/vm/drop_caches</pre>