Free Up RAM: Difference between revisions
Jump to navigation
Jump to search
Line 32: | Line 32: | ||
echo 'apt update;apt list --upgradable;apt upgrade'|sudo bash | echo 'apt update;apt list --upgradable;apt upgrade'|sudo bash | ||
bottom | bottom | ||
</syntaxhighlight> | |||
|- | |||
|colspan="3"| | |||
---- | |||
|- | |||
|valign="top"| | |||
<syntaxhighlight lang="bash"> | |||
docker network prune -f | |||
docker volume prune -f | |||
docker system prune -f | |||
docker image ls | |||
</syntaxhighlight> | |||
|valign="top"| | |||
<syntaxhighlight lang="bash"> | |||
cat <<'EXE' | bash | |||
for d in system network volume | |||
do docker ${d} prune -f;done | |||
EXE | |||
</syntaxhighlight> | |||
|valign="top"| | |||
<syntaxhighlight lang="bash"> | |||
cat <<'EXE' | ssh [email protected] | |||
for d in system network volume | |||
do docker ${d} prune -f;done | |||
EXE | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 21:52, 2 July 2024
🟢 Free Up » PageCache
echo 'sync;echo 1 >/proc/sys/vm/drop_caches'| sudo bash
🟡 Free Up » Swap Space
echo 'swapoff -a && swapon -a'|sudo bash
🟠 Free Up » Dentries & Inodes
echo 'sync;echo 2 >/proc/sys/vm/drop_caches'|sudo bash
🔴 Free Up » PageCache, Dentries & Inodes
echo 'sync;echo 3 >/proc/sys/vm/drop_caches'|sudo bash
echo 'sync;echo 3 >/proc/sys/vm/drop_caches && swapoff -a && swapon -a'|sudo bash
Playground
echo 'sync;echo 3 >/proc/sys/vm/drop_caches && swapoff -a && swapon -a'|sudo bash
free -th
|
echo 'apt update;apt list --upgradable;apt upgrade'|sudo bash
bottom
| |
| ||
docker network prune -f
docker volume prune -f
docker system prune -f
docker image ls
|
cat <<'EXE' | bash
for d in system network volume
do docker ${d} prune -f;done
EXE
|
cat <<'EXE' | ssh [email protected]
for d in system network volume
do docker ${d} prune -f;done
EXE
|
| ||
References
| ||