Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In-RAM caches

Based onĀ kernel.org doc on sysctl/vm:

# free pagecache:
echo 1 > /proc/sys/vm/drop_caches

# free reclaimable slab objects (includes dentries and inodes):
echo 2 > /proc/sys/vm/drop_caches

# free slab objects and pagecache:
echo 3 > /proc/sys/vm/drop_caches

Swap

ATTENTION: Only if "real" RAM is free, and NOT under load or during high-traffic times.
swapoff -a
swapon -a
  • No labels