diff --git a/root/etc/sysctl.d/90-vm-map-count.conf b/root/etc/sysctl.d/90-vm-map-count.conf index 45f2f1a..d6119c5 100644 --- a/root/etc/sysctl.d/90-vm-map-count.conf +++ b/root/etc/sysctl.d/90-vm-map-count.conf @@ -1 +1,4 @@ +# Maximum number of memory pages a process may have. +# Increase this as some programs, particularly malloc debuggers +# may consume a lot more than the default (65530) vm.max_map_count=2147483642 diff --git a/root/etc/sysctl.d/90-vm-swappiness.conf b/root/etc/sysctl.d/90-vm-swappiness.conf index 51c6fc3..86068d4 100644 --- a/root/etc/sysctl.d/90-vm-swappiness.conf +++ b/root/etc/sysctl.d/90-vm-swappiness.conf @@ -1 +1,4 @@ +# How much memory swapping should be done (0-100) +# A low value means the kernel will avoid swapping as much as possible. +# We decrease this as with SSDs, swapping can decrease lifetime, only swap when really needed (default: 60) vm.swappiness=10