Merge "Set lowmemorykiller kernel driver parameters before lmkd is started" am: 36ef05cbde
am: b3553f8963
Change-Id: Ie0805dc4957df0a82080fda8bdb8d8748d8b67d5
This commit is contained in:
commit
355db04b78
|
@ -386,6 +386,10 @@ on init
|
|||
# Start logd before any other services run to ensure we capture all of their logs.
|
||||
start logd
|
||||
# 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 essential services.
|
||||
|
@ -825,10 +829,6 @@ on boot
|
|||
# parameters to match how it is managing things.
|
||||
write /proc/sys/vm/overcommit_memory 1
|
||||
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
|
||||
chown root system /sys/block/zram0/idle
|
||||
|
|
Loading…
Reference in New Issue