We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.
128MB ought to be enough for anybody.
Test: builds, boots
Bug: 62024591
Change-Id: I412ed9b0a885668ebe4c6c677a3bd0cd7f44080b
Signed-off-by: Alberto97 <albertop2197@gmail.com>
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
Jeff Sharkeyauthored and Danny Trunkcommited 2025-02-15 19:32:53 +01:00
* remove caf schedutil strings to align to the current xiaomi-sdm845 config
* remove cpu_boost as it is redundant
* remove process reclaim strings (it's not even enabled in our kernel)
* remove ufs scaling as it is now disabled in the kernel
Change-Id: I8d89414431d2a89d74103490c725abcdb7dbbe84
linckandreaauthored and Danny Trunkcommited 2025-02-14 23:37:24 +01:00
Setting ro.lmk.medium to 800 to prevent important processes from being
killed at medium vmpressure levels.
Bug: 77299493
Test: lmkd_unit_test
Merged-In: I37e1651a0a2b148a852e5bde86501024d4f87bbf
Change-Id: I37e1651a0a2b148a852e5bde86501024d4f87bbf
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(cherry picked from commit c954ec2eb318518cfa5c6f64a688fd8c809e91c5)
Suren Baghdasaryanauthored and Danny Trunkcommited 2025-02-14 23:32:21 +01:00
Enable ro.lmk.use_minfree_levels flag to use minfree levels to decide
when lmkd should kill. This makes lmkd work the same way lowmemorykiller
kernel driver used to work.
Bug: 77299493
Bug: 75322373
Test: lmkd_unit_test
Change-Id: Ic29d7fd21af1cb6af3a7d2a175d210775a09987e
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Suren Baghdasaryanauthored and Danny Trunkcommited 2025-02-14 23:29:13 +01:00
Currently all writes to the dev interface are done
by WriteStringToFd that uses char internally.
The current values seem to expect to be written as s32,
this sadly won't happen and triggers a special case in
the write handling of pm_qos_power_write:
it expects char buffers to be encoded as base16 and
decodes them.
This means the current 44 is actually 0x44 -> 68 seen by
the kernel.
Luckily it seems like both accepted values for this node
don't hit the threshold to enter C2, so it was never
noticed in real usage and didn't effect the device
C-States handling during hints.
Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: Ic544d4dcaa1edc3de913aed737baf1af88a45360
Luca Stefaniauthored and Danny Trunkcommited 2025-02-14 23:26:54 +01:00
* same value used by xiaomi-sdm845-common
* optimal value according to https://wiki.archlinux.org/title/Zram
Change-Id: Icea5cbf22a23fd49fa287e2f5a7fdee4555acd91
linckandreaauthored and Danny Trunkcommited 2025-02-14 22:05:04 +01:00
* this allows aurora to have more zram without requiring a dedicated fstab
* other tama devices will still have 1gb of zram
Change-Id: I88fc3706464a146c74ca67f4c3539e8210bcc005
linckandreaauthored and Danny Trunkcommited 2025-02-14 22:05:04 +01:00
- Grant SYS_NICE capabilities to audio HAL processes as sound trigger
HAL threads need to run at real time priority as well as use the
CPU affinity, for far field voice.
CRs-Fixed: 2359951
Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31
Sidipotu Ashokauthored and Danny Trunkcommited 2025-02-14 22:05:04 +01:00
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.
Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678
Suren Baghdasaryanauthored and Danny Trunkcommited 2025-02-14 22:05:04 +01:00
* move almost everything to init.qcom.power.rc
* cleanup init.qcom.post_boot.sh by removing unused methods
* set vendor.post_boot.parsed to "1" during "on boot" phase
Change-Id: I69d6396aff29f82df0424ba8093b75c97cf9df56
linckandreaauthored and Danny Trunkcommited 2025-02-14 22:05:04 +01:00
* kanged from sake as @3a8f1b3d8f07e9654d7c9633779d1f70a5a399a9
* gesture & high polling rate support were removed
* use tama common sys path for touchscreen features
Change-Id: Iff6d8ace406b9f466b272d3632b23b97d6a7fffe
linckandreaauthored and Danny Trunkcommited 2025-02-14 22:05:04 +01:00