Clear Linux Cache

How to clear cache in Linux, my team topshows this,

Cpu(s):  0.0%us,  0.2%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  10036256k total,  7364896k used,  2671360k free, 2616k buffers
Swap:  8191992k total,  82752k used,  8109240k free, 104244k cached

and mine free -mlooks like this:

             total       used       free     shared    buffers     cached
Mem:          9801       7192       2608          0          2        101
-/+ buffers/cache:       7088       2712
Swap:         7999         80       7919

I tried using the drop_cache command, but still my memory usage is great.

How to do it?

Thanks.

+4
source share
2 answers

You just need to add "sync" to Nikhil's answer, as root run:

sync && echo 3 > /proc/sys/vm/drop_caches

+9
source

Take a look here . You need to run this command as root:

echo 3 > /proc/sys/vm/drop_caches
+4
source

All Articles