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

Commenti

Post popolari in questo blog

Solaris 10: How to restart network service without reboot

How to send e-mail using PHP and mail() with Linux Debian