Set vm.swappiness=10

This commit is contained in:
2022-07-29 03:16:42 -04:00
parent da07fc92f9
commit 89fe412cfb
+1
View File
@@ -154,6 +154,7 @@ if [ "$swap" != 0 ]; then
chmod 600 /mnt/swapfile
mkswap /mnt/swapfile
swapon /mnt/swapfile
echo 'vm.swappiness=10' > /mnt/etc/sysctl.d/99-swappiness.conf
fi
fstabgen -U /mnt >> /mnt/etc/fstab