Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57fdb5cf authored by Colin Cross's avatar Colin Cross
Browse files

add property to adjust extra_free_kbytes kernel vm tunable

ActivityManager can't directly write to extra_free_kbytes because
/proc/sys rejects all chown and chmod syscalls.  Proxy the writes
through init by using the sys.sysctl.extra_free_kbytes property.

Bug: 10024467
Change-Id: I441e00478421254355fcafb252bc878166483d4c
parent 44f5c157
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -402,6 +402,10 @@ on property:vold.decrypt=trigger_shutdown_framework
on property:sys.powerctl=*
    powerctl ${sys.powerctl}

# system server cannot write to /proc/sys files, so proxy it through init
on property:sys.sysctl.extra_free_kbytes=*
    write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes}

## Daemon processes to be run by init.
##
service ueventd /sbin/ueventd