From f08f049de11c15a4251cb1db08cf0bee20bd9b59 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Mon, 26 Oct 2020 15:26:48 -0700 Subject: [PATCH] ANDROID: GKI: enable CONFIG_FAIR_GROUP_SCHED Enable CONFIG_FAIR_GROUP_SCHED with proper tuning can help prioritize important work in Android. The feature was taken off due to improper setting on the background tasks' share. Now Tasks in root group has already moved into a newly created system subgroup, so the shares can be properly set. +----------------------------------------------------------------------------------------+ | Cold App Launch Time (* w/ prio120 8 threads running in root cpuset) | +----------------------------------------+--------+------+---------+-----------+---------+ | | chrome | maps | youtube | playstore | setting | +----------------------------------------+--------+------+---------+-----------+---------+ | No CONFIG_FAIR_GROUP_SCHED support(*) | 591 | 1314 | 887 | 1952 | 551 | +----------------------------------------+--------+------+---------+-----------+---------+ | CONFIG_FAIR_GROUP_SCHED w/ 1% limit(*) | 567 | 637 | 668 | 1450 | 529 | +----------------------------------------+--------+------+---------+-----------+---------+ | No stress runnning (best case) | 416 | 463 | 484 | 1075 | 363 | +----------------------------------------+--------+------+---------+-----------+---------+ Bug: 171740453 Test: Build and boot Signed-off-by: Wei Wang Change-Id: Ibb7e48c93136e3967da6381d7c0c94d0cdaee443 --- arch/arm64/configs/gki_defconfig | 1 - arch/x86/configs/gki_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index 389ecfd45453..77c2ef7d9330 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -16,7 +16,6 @@ CONFIG_UCLAMP_TASK=y CONFIG_CGROUPS=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_SCHED=y -# CONFIG_FAIR_GROUP_SCHED is not set CONFIG_UCLAMP_TASK_GROUP=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y diff --git a/arch/x86/configs/gki_defconfig b/arch/x86/configs/gki_defconfig index e0769cdfb629..8c11a0f2b122 100644 --- a/arch/x86/configs/gki_defconfig +++ b/arch/x86/configs/gki_defconfig @@ -18,7 +18,6 @@ CONFIG_UCLAMP_TASK=y CONFIG_CGROUPS=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_SCHED=y -# CONFIG_FAIR_GROUP_SCHED is not set CONFIG_UCLAMP_TASK_GROUP=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y