summaryrefslogtreecommitdiffstats
path: root/kernel/tsacct.c
diff options
context:
space:
mode:
authorTim C Chen <tim.c.chen@linux.intel.com>2023-07-08 00:57:02 +0200
committerPeter Zijlstra <peterz@infradead.org>2023-07-13 15:21:52 +0200
commit7ff1693236f5d97a939dbeb660c07671a2d57071 (patch)
tree3a85278e27de0f89ebc3d47b4779530ce9b93c99 /kernel/tsacct.c
parentsched/topology: Record number of cores in sched group (diff)
downloadlinux-7ff1693236f5d97a939dbeb660c07671a2d57071.tar.xz
linux-7ff1693236f5d97a939dbeb660c07671a2d57071.zip
sched/fair: Implement prefer sibling imbalance calculation between asymmetric groups
In the current prefer sibling load balancing code, there is an implicit assumption that the busiest sched group and local sched group are equivalent, hence the tasks to be moved is simply the difference in number of tasks between the two groups (i.e. imbalance) divided by two. However, we may have different number of cores between the cluster groups, say when we take CPU offline or we have hybrid groups. In that case, we should balance between the two groups such that #tasks/#cores ratio is the same between the same between both groups. Hence the imbalance computed will need to reflect this. Adjust the sibling imbalance computation to take into account of the above considerations. Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/4eacbaa236e680687dae2958378a6173654113df.1688770494.git.tim.c.chen@linux.intel.com
Diffstat (limited to 'kernel/tsacct.c')
0 files changed, 0 insertions, 0 deletions