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
This commit is contained in:
parent
44f5c15724
commit
57fdb5cfd2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue