diff --git a/etc/sysctl.d/.gitignore b/etc/sysctl.d/.gitignore new file mode 100644 index 00000000..4f1255be --- /dev/null +++ b/etc/sysctl.d/.gitignore @@ -0,0 +1 @@ +99-sysctl.conf diff --git a/etc/sysctl.d/99-ssd-swappiness.conf b/etc/sysctl.d/99-ssd-swappiness.conf new file mode 100644 index 00000000..263cf708 --- /dev/null +++ b/etc/sysctl.d/99-ssd-swappiness.conf @@ -0,0 +1,3 @@ +# Only use swap when it has to be used. On SSDs it's preferable to not have +# so much swap use, while on HDD the default 60 is ok. +vm.swappiness = 1