From: Peter Zijlstra <peterz@infradead.org>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Shrikanth Hegde <sshegde@linux.ibm.com>,
Valentin Schneider <vschneid@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>
Subject: Re: [PATCH 5/5] sched/fair: Rename set_next_buddy() to set_next_pick()
Date: Tue, 9 Apr 2024 11:27:49 +0200 [thread overview]
Message-ID: <20240409092749.GC2665@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <ZhT9O6yd868GuAxr@gmail.com>
On Tue, Apr 09, 2024 at 10:32:59AM +0200, Ingo Molnar wrote:
> I don't think we want to nuke it - there's 3 users:
>
> - yield()
> - CFS bandwidth
> - wakeup
>
> I think the yield() and CFS bandwidth ones are genuine, but non-working due
> to NEXT_BUDDY at 0. Wakeup was the original intended NEXT_BUDDY logic, but
> it got turned off due to some performance or latency considerations that
> might or might not be valid & relevant today.
>
> 2)
>
> Even the task_hot() use of ->next isn't spurious: if a task has been marked
> as run-next, then presumably the current task is descheduling and we should
> probably not tear its ->next away in load-balancing.
>
> 3)
>
> Side note: a set rq->next should probably reduce a candidate runqueue's
> weight both in periodic load-balancing and in idle-balancing, by rq->curr's
> weight or so?
>
> So what I think we should do is to keep ->next and fix all its intended
> uses, and make it all unconditional by removing both NEXT_BUDDY and
> CACHE_HOT_BUDDY. I can cook up a series if you agree in principle.
So yes on fixing those yield_to() and cfs_bandwidth thingies, but put
then under a new knob -- if the fix regresses we can simply flip it.
Ack on removing the current knobs, for them not having been changed in
forever.
prev parent reply other threads:[~2024-04-09 9:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-07 8:43 [PATCH 0/5] sched: Split out kernel/sched/fair_balance.c, numa_balancing.c and syscalls.c, plus other updates Ingo Molnar
2024-04-07 8:43 ` [PATCH 1/5] sched: Split out kernel/sched/syscalls.c from kernel/sched/core.c Ingo Molnar
2024-04-07 19:09 ` kernel test robot
2024-05-27 12:05 ` [tip: sched/core] sched/syscalls: " tip-bot2 for Ingo Molnar
2024-04-07 8:43 ` [PATCH 2/5] sched: Split out kernel/sched/fair_balance.c from kernel/sched/fair.c Ingo Molnar
2024-04-07 10:04 ` kernel test robot
2024-04-07 10:15 ` kernel test robot
2024-04-07 20:21 ` kernel test robot
2024-04-07 8:43 ` [PATCH 3/5] sched: Split out kernel/sched/numa_balancing.c " Ingo Molnar
2024-04-07 18:49 ` kernel test robot
2024-04-07 8:43 ` [PATCH 4/5] sched/fair: Remove NEXT_BUDDY Ingo Molnar
2024-04-07 8:43 ` [PATCH 5/5] sched/fair: Rename set_next_buddy() to set_next_pick() Ingo Molnar
2024-04-08 9:16 ` Peter Zijlstra
2024-04-09 8:32 ` Ingo Molnar
2024-04-09 9:27 ` Peter Zijlstra [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240409092749.GC2665@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=dietmar.eggemann@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=sshegde@linux.ibm.com \
--cc=torvalds@linux-foundation.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox