From 23ccb056d1f6191001cc9775d5aa29722a07365c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 25 Oct 2024 18:27:10 -0300 Subject: Feat: provision: debian: basic: set swappiness to 10 --- share/provision/debian/basic | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share/provision/debian') diff --git a/share/provision/debian/basic b/share/provision/debian/basic index 5344df3..cfd2122 100755 --- a/share/provision/debian/basic +++ b/share/provision/debian/basic @@ -61,6 +61,11 @@ sudo apps/trashman/trashman install grub-serial-console sudo sysctl kernel.unprivileged_bpf_disabled=1 echo "kernel.unprivileged_bpf_disabled=1" | sudo tee /etc/sysctl.d/kernel.unprivileged_bpf_disabled.conf > /dev/null +# Swappiness +# Decrease system swappiness (default is 60), since this is a virtual machine +sudo sysctl vm.swappiness=10 +echo "vm.swappiness = 10" | sudo tee /etc/sysctl.d/vm.swappiness.conf > /dev/null + # Configuring APT sudo apt-get update $APT_INSTALL apt-transport-https || exit 1 -- cgit v1.2.3