android_system_core/libprocessgroup/profiles
Bart Van Assche bc077ff110 Add support for memcg v2 attributes
Some but not all memcg v1 attributes exist in the v2 hierarchy. The
following information comes from Shakeel Butt and Kamil Yurtsever,
"cgroup v2 migration at Google", Linux Plumbers Conference 2018
( https://lpc.events/event/2/contributions/204/attachments/143/378/LPC2018-cgroup-v2.pdf ):

         v1                    v2
-------------------------- ----------
memory.limit_in_bytes      memory.max
memory.soft_limit_in_bytes memory.low

Add support for cgroup attributes that have different names in the v1
and v2 hierarchies. Also add those memcg attributes that are used in
lmkd.

Bug: 213617178
Test: Tested lmkd with v1 and v2 memcg.
Change-Id: Ia5c5f02974f3b783d5cdaad85b33169ced8db55f
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-17 14:18:14 -07:00
..
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
cgroups.json Fix cgroup directory permissions 2022-03-15 23:02:20 +00:00
cgroups.proto libprocessgroup: introduce optional attribute for cgroup controllers 2021-03-11 17:42:30 +00:00
cgroups.recovery.json libprocessgroup: fix uid/pid hierarchy for recovery mode 2021-02-11 17:03:19 -08:00
cgroups_28.json libprocessgroup: Change per-API level task profiles to override the diffs 2020-12-03 19:39:31 +00:00
cgroups_29.json libprocessgroup: Change per-API level task profiles to override the diffs 2020-12-03 19:39:31 +00:00
cgroups_30.json libprocessgroup: introduce optional attribute for cgroup controllers 2021-03-11 17:42:30 +00:00
cgroups_test.h libprocessgroup_proto_test split into multiple files 2019-03-15 12:34:42 -07:00
task_profiles.json Add support for memcg v2 attributes 2022-03-17 14:18:14 -07:00
task_profiles.proto Add support for memcg v2 attributes 2022-03-17 14:18:14 -07:00
task_profiles_28.json init.rc: Create a new group for dex2oat 2021-10-22 22:20:07 +08:00
task_profiles_29.json init.rc: Create a new group for dex2oat 2021-10-22 22:20:07 +08:00
task_profiles_30.json init.rc: Create a new group for dex2oat 2021-10-22 22:20:07 +08:00
task_profiles_test.h libprocessgroup_proto_test split into multiple files 2019-03-15 12:34:42 -07:00
test.cpp Fix build with new googletest 2019-11-10 04:08:25 +00:00
test_vendor.cpp libprocessgroup: Add VTS tests for vendor JSON files 2019-03-15 16:28:42 -07:00