Use extra_free_kbytes.sh whenever sys.sysctl.extra_free_kbytes changes
sys.sysctl.extra_free_kbytes property controls the value set to the /proc/sys/vm/extra_free_kbytes out-of-tree kernel knob. Replace its use with execution of extra_free_kbytes.sh script which calculates and sets corresponding value to /proc/sys/vm/watermark_scale_factor upstream-supported kernel knob. Bug: 109664768 Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Iaece28eb858a20c8c39578a28dc6bbc6adc13c40
This commit is contained in:
parent
642048d969
commit
92cb2e8583
1 changed files with 1 additions and 1 deletions
|
@ -1138,7 +1138,7 @@ on property:sys.boot_completed=1
|
|||
# and chown/chmod does not work for /proc/sys/ entries.
|
||||
# So proxy writes through init.
|
||||
on property:sys.sysctl.extra_free_kbytes=*
|
||||
write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes}
|
||||
exec -- /system/bin/extra_free_kbytes.sh ${sys.sysctl.extra_free_kbytes}
|
||||
|
||||
# Allow users to drop caches
|
||||
on property:perf.drop_caches=3
|
||||
|
|
Loading…
Reference in a new issue