Files
kernel_common_drivers/drivers/android/Kconfig
T
Jianxiong Pan 253ac2b0ba mm: port lowmemorykiller for 5.15+P. [2/2]
PD#SWPL-124928

Problem:
Android P no LMKD.

Solution:
port the lowmemorykiller from 4.9.

Verify:
local.

Change-Id: Ib9ed5d9ff1e29f3fa1e5a522255f2153b37a0d5a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-05-25 01:21:49 -07:00

43 lines
1.2 KiB
Plaintext

# SPDX-License-Identifier: GPL-2.0
config AMLOGIC_ANDROID_LOGGER
tristate "Android log driver"
default n
help
This adds support for system-wide logging using four log buffers.
These are:
1: main
2: events
3: radio
4: system
Log reading and writing is performed via normal Linux reads and
optimized writes. This optimization avoids logging having too
much overhead in the system.
config ANDROID_LOW_MEMORY_KILLER
bool "Android Low Memory Killer"
help
Registers processes to be killed when low memory conditions, this is useful
as there is no particular swap space on android.
The registered process will kill according to the priorities in android init
scripts (/init.rc), and it defines priority values with minimum free memory size
for each priority.
config ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES
bool "Android Low Memory Killer: detect oom_adj values"
depends on ANDROID_LOW_MEMORY_KILLER
default y
help
Detect oom_adj values written to
/sys/module/lowmemorykiller/parameters/adj and convert them
to oom_score_adj values.
config AMLOGIC_LMK
bool "Amlogic Low Memory Killer vendor"
help
Add file free page statistics, which also triggers lmkd
when there are many files in free.