4 ms·
That's how I check true free memory available: root@joe-pc:~# free -m total used free shared buffers cached Mem:
by hippich 13y ago
That's how I check true free memory available:
root@joe-pc:~# free -m
total used free shared buffers cached
Mem: 32057 30347 1710 0 1312 21568
-/+ buffers/cache: 7466 24591
Swap: 0 0 0
root@joe-pc:~# sync; echo 3 > /proc/sys/vm/drop_caches
root@joe-pc:~# free -m
total used free shared buffers cached
Mem: 32057 5628 26429 0 4 891
-/+ buffers/cache: 4732 27325
Swap: 0 0 0
root@joe-pc:~#
- dice 13y agoYikes! Hopefully not on production systems. I've had fileservers which needed 60+GB of dentry cache to serve up files in a reasonable time, something like that could bring the site to a crawl for 10 minutes or more.
- hippich 13y agoGood point. I am doing it on my laptop and server without load. So this is not a big problem in my cases.