Re: [RFC PATCH 11/16] sched/qos: Add rampup multiplier QoS
From: Dietmar Eggemann
Date: Tue Sep 17 2024 - 16:09:39 EST
On 20/08/2024 18:35, Qais Yousef wrote:
[...]
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index 0c10e2afb52d..3d9794db58e1 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -4906,7 +4906,7 @@ static inline void util_est_update(struct cfs_rq *cfs_rq,
> if (!task_sleep) {
> if (task_util(p) > task_util_dequeued(p)) {
> ewma &= ~UTIL_AVG_UNCHANGED;
> - ewma = approximate_util_avg(ewma, p->se.delta_exec / 1000);
> + ewma = approximate_util_avg(ewma, (p->se.delta_exec/1000) * p->sched_qos.rampup_multiplier);
Isn't this exactly the idea from UTIL_EST_FASTER?
faster_est_approx(delta * 2) ... double speed even w/o contention?
^
[...]