Merge "Set lowmemorykiller kernel driver parameters before lmkd is started"
This commit is contained in:
commit
36ef05cbde
1 changed files with 4 additions and 4 deletions
|
|
@ -386,6 +386,10 @@ on init
|
||||||
# Start logd before any other services run to ensure we capture all of their logs.
|
# Start logd before any other services run to ensure we capture all of their logs.
|
||||||
start logd
|
start logd
|
||||||
# Start lmkd before any other services run so that it can register them
|
# Start lmkd before any other services run so that it can register them
|
||||||
|
chown root system /sys/module/lowmemorykiller/parameters/adj
|
||||||
|
chmod 0664 /sys/module/lowmemorykiller/parameters/adj
|
||||||
|
chown root system /sys/module/lowmemorykiller/parameters/minfree
|
||||||
|
chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
|
||||||
start lmkd
|
start lmkd
|
||||||
|
|
||||||
# Start essential services.
|
# Start essential services.
|
||||||
|
|
@ -825,10 +829,6 @@ on boot
|
||||||
# parameters to match how it is managing things.
|
# parameters to match how it is managing things.
|
||||||
write /proc/sys/vm/overcommit_memory 1
|
write /proc/sys/vm/overcommit_memory 1
|
||||||
write /proc/sys/vm/min_free_order_shift 4
|
write /proc/sys/vm/min_free_order_shift 4
|
||||||
chown root system /sys/module/lowmemorykiller/parameters/adj
|
|
||||||
chmod 0664 /sys/module/lowmemorykiller/parameters/adj
|
|
||||||
chown root system /sys/module/lowmemorykiller/parameters/minfree
|
|
||||||
chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
|
|
||||||
|
|
||||||
# System server manages zram writeback
|
# System server manages zram writeback
|
||||||
chown root system /sys/block/zram0/idle
|
chown root system /sys/block/zram0/idle
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue