diff options
author | Luca Abeni <[email protected]> | 2020-05-20 15:42:41 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-06-15 14:10:05 +0200 |
commit | 60ffd5edc5e4fa69622c125c54ef8e7d5d894af8 (patch) | |
tree | 28335309287723ee841f9713ddd520e17f078f89 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | fc9dc698472aa460a8b3b036d9b1d0b751f12f58 (diff) |
sched/deadline: Improve admission control for asymmetric CPU capacities
The current SCHED_DEADLINE (DL) admission control ensures that
sum of reserved CPU bandwidth < x * M
where
x = /proc/sys/kernel/sched_rt_{runtime,period}_us
M = # CPUs in root domain.
DL admission control works well for homogeneous systems where the
capacity of all CPUs are equal (1024). I.e. bounded tardiness for DL
and non-starvation of non-DL tasks is guaranteed.
But on heterogeneous systems where capacity of CPUs are different it
could fail by over-allocating CPU time on smaller capacity CPUs.
On an Arm big.LITTLE/DynamIQ system DL tasks can easily starve other
tasks making it unusable.
Fix this by explicitly considering the CPU capacity in the DL admission
test by replacing M with the root domain CPU capacity sum.
Signed-off-by: Luca Abeni <[email protected]>
Signed-off-by: Dietmar Eggemann <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Juri Lelli <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions