fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
sysctl vm.swappiness=20
nano /etc/fstab
/swapfile swap swap defaults 0 0
nano /etc/sysctl.conf => vm.swappiness=10
sysctl vm.vfs_cache_pressure=50
nano /etc/sysctl.conf => vm.vfs_cache_pressure=50
linux swap sysadmin
https://linuxize.com/post/how-to-add-swap-space-on-debian-9/
<iframe width="100%" height="488" src="http://snipet.teknotit.com/index.php?embed=5d0cfdfee2c09" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 11/03/2021