No description
Find a file
Suren Baghdasaryan 642048d969 init: Add extra_free_kbytes.sh script to adjust watermark_scale_factor
Android uses an out-of-tree /proc/sys/vm/extra_free_kbytes kernel knob
to increase low watermark. A similar /proc/sys/vm/watermark_scale_factor
knob supported in upstream kernel can be used for the same purpose.
The script implements conversion from desired extra_free_kbytes value
to watermark_scale_factor value and sets watermark_scale_factor according
to the value for extra_free_kbytes provided as a parameter.
Note that watermark_scale_factor affects high watermark differently
from extra_free_kbytes. While extra_free_kbytes increases low and high
watermarks by the same amount, watermark_scale_factor affects high
watermark 2x times. Therefore it is expected that replacing the usage
extra_free_kbytes with watermark_scale_factor will keep the same low
watermark but high watermark will be higher than before.

Usage:
    extra_free_kbytes.sh <extra_free_kbytes value>

Bug: 109664768
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Id8949be731da77be884cdeec3a765ea291dbc2f0
2021-08-17 17:02:18 +00:00
bootstat Use libgtest_prod_headers. 2021-04-20 15:22:02 -07:00
cli-test
code_coverage
debuggerd debuggerd: add -fno-finite-loop to fix test. 2021-08-11 13:21:11 -07:00
diagnose_usb Remove jmgao from OWNERS files. 2021-08-10 21:42:14 -07:00
fastboot Merge "fastboot/README.md: Update response packet max size to 256" 2021-08-17 14:15:36 +00:00
fs_mgr Merge "Support multiple fstab configs for one mount point" 2021-08-17 01:39:59 +00:00
gatekeeperd Remove ndk_platform backend. Use the ndk backend. 2021-07-27 12:19:00 +09:00
healthd
include
init init: Add extra_free_kbytes.sh script to adjust watermark_scale_factor 2021-08-17 17:02:18 +00:00
janitors
libappfuse
libasyncio
libbinderwrapper
libcrypto_utils Make libfs_mgr dependencies vendor_ramdisk_available. 2021-07-23 16:50:06 -07:00
libcutils Migrate Rust libcutils bindings into librustutils. 2021-07-30 07:40:24 -07:00
libdiskconfig
libgrallocusage
libkeyutils Make libfs_mgr dependencies vendor_ramdisk_available. 2021-07-23 16:50:06 -07:00
libmodprobe Completely migrate init first stage to Soong 2021-06-18 14:26:55 +09:00
libnetutils
libpackagelistparser
libprocessgroup libprocessgroup: Activate controllers in cgroup v2 hierarchy at intermediate levels 2021-08-02 20:02:51 +00:00
libqtaguid
libsparse
libstats Use libgtest_prod_headers. 2021-04-20 15:22:02 -07:00
libsuspend
libsync Replace llndk_library with llndk clause in cc_library 2021-04-21 19:13:41 -07:00
libsystem
libsysutils
libusbhost
libutils Revert "Revert "Remove unused String8::setPathName."" 2021-07-19 20:19:44 +00:00
libvndksupport Replace llndk_library with llndk clause in cc_library 2021-04-21 19:13:41 -07:00
llkd Replace writepid with task_profiles command for cgroup migration 2021-06-24 17:24:20 +00:00
mini_keyctl
mkbootfs Rename system/cote/cpio/ -> system/core/mkbootfs/ 2021-05-05 19:03:36 +08:00
property_service
reboot
rootdir Restrict creation of bootreceiver tracing instance to 64-bit systems. 2021-08-05 18:46:43 +00:00
run-as
sdcard
set-verity-state
shell_and_utilities Add exfat utilities for mkfs and fsck 2021-06-11 09:03:23 +00:00
storaged storaged: remove unused libsysutils dep 2021-06-29 00:10:39 +00:00
toolbox
trusty Merge "trusty: storage: Allow starting without /data mounted" 2021-08-06 05:29:45 +00:00
usbd usbd - remove unused libcutils dep 2021-06-28 23:56:29 +00:00
watchdogd
.clang-format
.clang-format-2
.clang-format-4
.gitignore
CleanSpec.mk
METADATA
MODULE_LICENSE_APACHE2
OWNERS
PREUPLOAD.cfg
TEST_MAPPING