[PATCH 0/3] DL capacity-aware fixes

Dietmar Eggemann posted 3 patches 3 years, 9 months ago
There is a newer version of this series
kernel/sched/cpudeadline.c |  2 +-
kernel/sched/deadline.c    | 28 +++++++++++++---------------
kernel/sched/fair.c        |  8 ++++----
kernel/sched/rt.c          |  4 ++--
kernel/sched/sched.h       | 13 +++++++++----
5 files changed, 29 insertions(+), 26 deletions(-)
[PATCH 0/3] DL capacity-aware fixes
Posted by Dietmar Eggemann 3 years, 9 months ago
While testing cpusets on asymmetric CPU capacity systems I realized that
the admission control, which kicks in when the cpumask of a cpuset is
about to be changed, is not capacity-aware. [PATCH 2/3] addresses this
issue.

Overview:

[PATCH 1/3] - Not part of the DL related changes but here for
              convenience : Inline helper function around
              static_branch_unlikely(&sched_asym_cpucapacity)

[PATCH 2/3] - Make dl_cpuset_cpumask_can_shrink() capacity-aware.

[PATCH 3/3] - Save a multiplication in dl_task_fits_capacity() by using
	      already maintained dl_density.

Dietmar Eggemann (3):
  sched: Introduce sched_asym_cpucap_active()
  sched/deadline: Make dl_cpuset_cpumask_can_shrink() capacity-aware
  sched/deadline: Use sched_dl_entity's dl_density in
    dl_task_fits_capacity()

 kernel/sched/cpudeadline.c |  2 +-
 kernel/sched/deadline.c    | 28 +++++++++++++---------------
 kernel/sched/fair.c        |  8 ++++----
 kernel/sched/rt.c          |  4 ++--
 kernel/sched/sched.h       | 13 +++++++++----
 5 files changed, 29 insertions(+), 26 deletions(-)

-- 
2.25.1
Re: [PATCH 0/3] DL capacity-aware fixes
Posted by Juri Lelli 3 years, 9 months ago
Hi,

On 29/06/22 14:20, Dietmar Eggemann wrote:
> While testing cpusets on asymmetric CPU capacity systems I realized that
> the admission control, which kicks in when the cpumask of a cpuset is
> about to be changed, is not capacity-aware. [PATCH 2/3] addresses this
> issue.
> 
> Overview:
> 
> [PATCH 1/3] - Not part of the DL related changes but here for
>               convenience : Inline helper function around
>               static_branch_unlikely(&sched_asym_cpucapacity)
> 
> [PATCH 2/3] - Make dl_cpuset_cpumask_can_shrink() capacity-aware.
> 
> [PATCH 3/3] - Save a multiplication in dl_task_fits_capacity() by using
> 	      already maintained dl_density.

I had a look as well and, other than Vincent's comment on 3/3, the set
looked good to me. Looking forward for v2. :)

Thanks,
Juri