diff --git a/packages/sysutils/busybox/init.d/07_sysctl b/packages/sysutils/busybox/init.d/07_sysctl index 9d0503b25c..9fb31fcb84 100644 --- a/packages/sysutils/busybox/init.d/07_sysctl +++ b/packages/sysutils/busybox/init.d/07_sysctl @@ -24,16 +24,6 @@ progress "setup sysctl" - ######################################################################## - ## set sysctl kernel params - ## proc/sys/vm/min_free_kbytes: - ## The free area is primarily useful to give the kernel enough memory - ## to act in situations where the swapper suddenly has to do a lot of work. - ## In other situations, you can make things worse, since you are - ## effectively giving less memory for applications. - ######################################################################## - echo 16384 > /proc/sys/vm/min_free_kbytes - if [ -f /etc/sysctl.conf ]; then sysctl -p /etc/sysctl.conf > /dev/null 2>&1 & fi diff --git a/packages/sysutils/busybox/sysctl.d/memory.conf b/packages/sysutils/busybox/sysctl.d/memory.conf new file mode 100644 index 0000000000..b2ccb5ba4a --- /dev/null +++ b/packages/sysutils/busybox/sysctl.d/memory.conf @@ -0,0 +1 @@ +vm.min_free_kbytes=16384