Re: [tip: sched/core] sched,fair: skip newidle_balance if a wakeup is pending
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip: sched/core] sched,fair: skip newidle_balance if a wakeup is pending
- From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
- Date: Thu, 22 Apr 2021 10:15:26 +0200
- Cc: linux-tip-commits@xxxxxxxxxxxxxxx, Rik van Riel <riel@xxxxxxxxxxx>, x86@xxxxxxxxxx, Vincent Guittot <vincent.guittot@xxxxxxxxxx>
- In-reply-to: <161907696062.29796.108437696048031441.tip-bot2@tip-bot2>
- References: <20210420120705.5c705d4b@imladris.surriel.com> <161907696062.29796.108437696048031441.tip-bot2@tip-bot2>
On Thu, Apr 22, 2021 at 07:36:00AM -0000, tip-bot2 for Rik van Riel wrote:
> @@ -10684,7 +10693,12 @@ out:
> if (time_after(this_rq->next_balance, next_balance))
> this_rq->next_balance = next_balance;
>
> - if (pulled_task)
> + /*
> + * If we are no longer idle, do not let the time spent here pull
> + * down this_rq->avg_idle. That could lead to newidle_balance not
> + * doing enough work, and the CPU actually going idle.
> + */
> + if (pulled_task || this_rq->ttwu_pending)
> this_rq->idle_stamp = 0;
I've un-committed this patch, because vingu was reporting increased idle
time because of this hunk. I had mistakenly assumed that was sorted
with v3, sorry for not keeping better track of things.
(also, now that I look again, please also fix the Subject to have a
capital after the :)
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]