From 80dc22edd1b022e7a5811478287b94b7a0c45082 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 5 Aug 2013 20:11:19 +0200 Subject: [PATCH] busybox: port some sysctl setup to systemd Signed-off-by: Stephan Raue --- packages/sysutils/busybox/init.d/07_sysctl | 10 ---------- packages/sysutils/busybox/sysctl.d/memory.conf | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) create mode 100644 packages/sysutils/busybox/sysctl.d/memory.conf 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