lunedì 22 giugno 2009

How to clean RAM cache in Linux

Check free and allocated RAM:
#free -m
total used free shared buffers cached
Mem: 3923 2504 1418 0 144 1882
-/+ buffers/cache: 478 3445
Swap: 0 0 0

Clean the cached RAM:
#sync; echo 3 > /proc/sys/vm/drop_caches

Check free and allocated RAM:
# free -m
total used free shared buffers cached
Mem: 3923 475 3448 0 3 99
-/+ buffers/cache: 373 3550
Swap: 0 0 0

Nessun commento: