platform_system_core/libprocessgroup/profiles
Bart Van Assche eef0f563fd [DO NOT MERGE] Migrate the blkio controller to the v2 cgroup hierarchy
There are multiple use cases in Android for which background writes need
to be controlled via the cgroup mechanism. The cgroup mechanism can only
control background writes if both the blkio and memcg controllers are
mounted in the v2 cgroup hierarchy. Hence this patch that migrates the
blkio controller from the v1 to the v2 cgroup hierarchy.

The blkio controller has been marked as optional since not all Android
kernels enable this controller (CONFIG_BLK_CGROUP).

This patch increases the TOTAL_BOOT_TIME for devices with a 4.19 kernel
(redfin) from 18.9 s to 20 s. This patch does not affect the boot time
for devices with a 5.10 or 5.15 kernel.

This patch increases the time spent in CgroupMap::ActivateControllers()
by 25 microseconds in Cuttlefish on an x86-64 CPU.
CgroupMap::ActivateControllers() is called by Service::Start().

Bug: 213617178
Test: Cuttlefish and various phones
Change-Id: I3c07c1be84c3feb277b7d7003652d5d3b57c6541
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-03-22 11:39:53 -07:00
..
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
cgroups.json [DO NOT MERGE] Migrate the blkio controller to the v2 cgroup hierarchy 2023-03-22 11:39:53 -07: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 [DO NOT MERGE] Migrate the blkio controller to the v2 cgroup hierarchy 2023-03-22 11:39:53 -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