Swap: Difference between revisions

link to RH blog
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
Line 1: Line 1:
Swap memory is a file-system based temporary storage for memory to allow a system to shuffle between different tasks that would otherwise consume all available physical memory (RAM).  Cloud providers like [[AWS]]<ref>https://serverfault.com/questions/218750/why-dont-ec2-ubuntu-images-have-swap</ref> and [[Digital Ocean]]<ref>https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04</ref> do not setup swap on their default images.  So, it's up to you to enable swap.  RedHat provides an overview of swap at https://www.redhat.com/en/blog/do-we-really-need-swap-modern-systems
Swap memory is a file-system based temporary storage for memory to allow a system to shuffle between different tasks that would otherwise consume all available physical memory (RAM).  Cloud providers like [[AWS]]<ref>https://serverfault.com/questions/218750/why-dont-ec2-ubuntu-images-have-swap</ref> and [[Digital Ocean]]<ref>https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04</ref> do not setup swap on their default images.  So, it's up to you to enable swap.  RedHat provides an overview of swap at https://www.redhat.com/en/blog/do-we-really-need-swap-modern-systems


<source lang="bash">
<syntaxhighlight lang="bash">
# see if it's enabled?
# see if it's enabled?
swapon -s
swapon -s
Line 37: Line 37:
vm.vfs_cache_pressure=50
vm.vfs_cache_pressure=50
HERE
HERE
</source>
</syntaxhighlight>


[[Category:System Administration]]
[[Category:System Administration]]
[[Category:Cloud]]
[[Category:Cloud]]