/
Memory cleanup hints
Memory cleanup hints
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
Complete cleanup (Desktop version)
To combine all of the above plus king-of-leaks glipper:
killall glipper echo 3 |sudo tee /proc/sys/vm/drop_caches >/dev/null sudo swapoff -a sudo swapon -a echo 3 |sudo tee /proc/sys/vm/drop_caches >/dev/null glipper &
Complete cleanup (Server version)
echo 3 > /proc/sys/vm/drop_caches ; swapoff -a ; swapon -a ; echo 3 > /proc/sys/vm/drop_caches
, multiple selections available,
Related content
SystemD failure highlights, and evation notes for Debian users
SystemD failure highlights, and evation notes for Debian users
More like this
Ever-raising kernel load caused by DRBD 8.4.6 to 8.4.9-1
Ever-raising kernel load caused by DRBD 8.4.6 to 8.4.9-1
More like this
Ever-rising load on Debian jessie + DRBD8 + LXC host pairs
Ever-rising load on Debian jessie + DRBD8 + LXC host pairs
More like this
Getting rid of Tracker on Linux Desktops
Getting rid of Tracker on Linux Desktops
More like this
Linux Rescue System hints
Linux Rescue System hints
More like this
Re-attachable shell for long-running tasks on remote host: tmux
Re-attachable shell for long-running tasks on remote host: tmux
More like this