Free Up RAM: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 16: Line 16:
==🔴 Free Up » PageCache, Dentries & Inodes==
==🔴 Free Up » PageCache, Dentries & Inodes==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
echo 'sync;echo 3>/proc/sys/vm/drop_caches'|sudo bash
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
echo 'sync;echo 3 >/proc/sys/vm/drop_caches && swapoff -a && swapon -a'|sudo bash
</syntaxhighlight>
</syntaxhighlight>



Revision as of 20:28, 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

References