android_system_core/libprocessgroup/profiles
Bart Van Assche 07f6c82a4c Migrate the blkio controller to the v2 cgroup hierarchy
This patch preserves the following parameter values:
* Foreground BFQ weight:      100
* Foreground CFQ group_idle:    0
* Foreground CFQ weight:     1000
* Background BFQ weight:       10
* Background CFQ group_idle:    0
* Background CFQ weight:      200

The foreground BFQ weight in task_profiles.json is the default BFQ
weight. From
https://www.kernel.org/doc/Documentation/block/bfq-iosched.txt:
"weight (namely blkio.bfq.weight or io.bfq-weight): the weight of the
group inside its parent. Available values: 1..10000 (default 100). The
linear mapping between ioprio and weights, described at the beginning
of the tunable section, is still valid, but all weights higher than
IOPRIO_BE_NR*10 are mapped to ioprio 0."

Bug: 213617178
Test: Booted Android in Cuttlefish and ran the following test:
Test: adb -e shell cat /sys/fs/cgroup/*/*/io.bfq.weight | sort | uniq -c
Test: 22 default 10
Test: 98 default 100
Change-Id: I7dfa521363a316592852fecce9192708c7a90514
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-28 20:56:15 +00:00
..
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
cgroups.json Migrate the blkio controller to the v2 cgroup hierarchy 2022-03-28 20:56:15 +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 Migrate the blkio controller to the v2 cgroup hierarchy 2022-03-28 20:56:15 +00: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