fallocate -l 1G /swapfile
dd if=/dev/zero of=/swapfile bs=1024 count=1048576
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
nano /etc/fstab /swapfile swap swap defaults 0 0
swapon --show
admin 7 мая, 2020
Posted In: Linux, swap
Метки: swap
echo vm.swappiness=10 >> /etc/sysctl.d/99-sysctl.conf sysctl -p
vm.vfs_cache_pressure=50
admin 30 марта, 2020
Posted In: CentOS, Debian, Linux, swap
Метки: linux, memory, ram, swap, sysctl