mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
busybox: set minimum free memory for all platforms
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ef3582fc69
commit
bd4c37762a
@ -23,6 +23,17 @@
|
|||||||
# runlevels: openelec, installer, textmode
|
# runlevels: openelec, installer, textmode
|
||||||
|
|
||||||
progress "setup sysctl"
|
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
|
if [ -f /etc/sysctl.conf ]; then
|
||||||
sysctl -p /etc/sysctl.conf > /dev/null 2>&1 &
|
sysctl -p /etc/sysctl.conf > /dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
|
@ -1 +0,0 @@
|
|||||||
vm.min_free_kbytes = 8192
|
|
Loading…
x
Reference in New Issue
Block a user