mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
busybox: port some sysctl setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
a7321ceb20
commit
80dc22edd1
@ -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
|
||||
|
1
packages/sysutils/busybox/sysctl.d/memory.conf
Normal file
1
packages/sysutils/busybox/sysctl.d/memory.conf
Normal file
@ -0,0 +1 @@
|
||||
vm.min_free_kbytes=16384
|
Loading…
x
Reference in New Issue
Block a user