Free Up RAM: Difference between revisions
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
echo 'sync;echo 3 >/proc/sys/vm/drop_caches && swapoff -a && swapon -a'|sudo bash | echo 'sync;echo 3 >/proc/sys/vm/drop_caches && swapoff -a && swapon -a'|sudo bash | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Playground== | |||
{| | |||
| valign="top" colspan="2" | | |||
<syntaxhighlight lang="bash"> | |||
echo 'sync;echo 3 >/proc/sys/vm/drop_caches && swapoff -a && swapon -a'|sudo bash | |||
free -th | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
echo 'apt update;apt list --upgradable;apt upgrade'|sudo bash | |||
bottom | |||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
| valign="top" | | |||
| valign="top" | | |||
|} | |||
== References == | == References == |
Revision as of 20:35, 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
| |
| ||
References
| ||