busybox: set minimum free memory for all platforms

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-05-12 23:46:22 +02:00
parent ef3582fc69
commit bd4c37762a
2 changed files with 11 additions and 1 deletions

View File

@ -23,6 +23,17 @@
# runlevels: openelec, installer, textmode
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 8192 > /proc/sys/vm/min_free_kbytes
if [ -f /etc/sysctl.conf ]; then
sysctl -p /etc/sysctl.conf > /dev/null 2>&1 &
fi

View File

@ -1 +0,0 @@
vm.min_free_kbytes = 8192