Re: [PATCH v6 1/3] sched/fair: Introduce the burstable CFS controller

From: Peter Zijlstra
Date: Wed Jun 23 2021 - 04:50:05 EST


On Tue, Jun 22, 2021 at 05:27:30PM +0200, Odin Ugedal wrote:

> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index bfaa6e1f6067..ab809bd11785 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -5277,6 +5277,7 @@ static enum hrtimer_restart
> sched_cfs_period_timer(struct hrtimer *timer)
> if (new < max_cfs_quota_period) {
> cfs_b->period = ns_to_ktime(new);
> cfs_b->quota *= 2;
> + cfs_b->burst *= 2;
>
> pr_warn_ratelimited(
> "cfs_period_timer[cpu%d]: period too short, scaling up (new
> cfs_period_us = %lld, cfs_quota_us = %lld)\n",

Thanks, folded that.