Free Up RAM: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
<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 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
== References == | |||
{| | |||
| valign="top" | | |||
* [https://www.hostbillo.com/blog/clear-ram-memory-cache-buffer-and-swap-space-on-linux-hostbillo/ Clear RAM Memory Cache, Buffer & Swap] | |||
* [https://unix.stackexchange.com/questions/706359/ <code>sync</code> » When & Why] | |||
| valign="top" | | |||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [https://serverfault.com/questions/283129/ SSH » Connection Hang Forever] | |||
* [[Python/Distribution]] | |||
* [[Ruby on Rails]] | |||
* [[TensorFlow]] | |||
* [[Homebrew]] | |||
* [[Linuxbrew]] | |||
* [[Python2]] | |||
* [[TMux]] | |||
* [[CURL]] | |||
| valign="top" | | |||
| valign="top" | | |||
|} |
Revision as of 20:23, 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
| ||