From: Madadi Vineeth Reddy <vineethr@linux.ibm.com>
To: Adam Li <adamli@os.amperecomputing.com>,
peterz@infradead.org, mingo@redhat.com, juri.lelli@redhat.com,
vincent.guittot@linaro.org
Cc: dietmar.eggemann@arm.com, rostedt@goodmis.org,
bsegall@google.com, mgorman@suse.de, vschneid@redhat.com,
linux-kernel@vger.kernel.org, patches@amperecomputing.com,
cl@linux.com, Madadi Vineeth Reddy <vineethr@linux.ibm.com>
Subject: Re: [PATCH 2/2] sched/fair: Update comments regarding last and skip buddy
Date: Mon, 25 Nov 2024 15:30:56 +0530 [thread overview]
Message-ID: <244e174a-5449-4730-963e-424a5b3edc05@linux.ibm.com> (raw)
In-Reply-To: <20241125021222.356881-3-adamli@os.amperecomputing.com>
Hi Adam Li,
On 25/11/24 07:42, Adam Li wrote:
> Commit 5e963f2bd465 ("sched/fair: Commit to EEVDF") removed the "last" and
> "skip" buddy. Update comments in pick_next_entity().
>
> Signed-off-by: Adam Li <adamli@os.amperecomputing.com>
> ---
> kernel/sched/fair.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index cd1188b7f3df..d8826a8e0c77 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -5602,17 +5602,11 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
>
> static int dequeue_entities(struct rq *rq, struct sched_entity *se, int flags);
>
> -/*
> - * Pick the next process, keeping these things in mind, in this order:
> - * 1) keep things fair between processes/task groups
> - * 2) pick the "next" process, since someone really wants that to run
> - * 3) pick the "last" process, for cache locality
> - * 4) do not run the "skip" process, if something else is available
> - */
> static struct sched_entity *
> pick_next_entity(struct rq *rq, struct cfs_rq *cfs_rq)
> {
> /*
> + * Pick the "next" buddy, since someone really wants that to run.
> * Enabling NEXT_BUDDY will affect latency but not fairness.
> */
Yes, the LAST_BUDDY and SKIP_BUDDY are obsolete now.
Reviewed-by: Madadi Vineeth Reddy <vineethr@linux.ibm.com>
Thanks,
Madadi Vineeth Reddy
> if (sched_feat(NEXT_BUDDY) &&
prev parent reply other threads:[~2024-11-25 10:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 2:12 [PATCH 0/2] sched/fair: Fix NEXT_BUDDY panic and clean up comments Adam Li
2024-11-25 2:12 ` [PATCH 1/2] sched/fair: Fix panic if NEXT_BUDDY enabled Adam Li
2024-11-25 10:14 ` Christian Loehle
2024-11-25 10:16 ` Madadi Vineeth Reddy
2024-11-27 7:26 ` Adam Li
2024-11-25 2:12 ` [PATCH 2/2] sched/fair: Update comments regarding last and skip buddy Adam Li
2024-11-25 10:00 ` Madadi Vineeth Reddy [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=244e174a-5449-4730-963e-424a5b3edc05@linux.ibm.com \
--to=vineethr@linux.ibm.com \
--cc=20241125021222.356881-3-adamli@os.amperecomputing.com \
--cc=adamli@os.amperecomputing.com \
--cc=bsegall@google.com \
--cc=cl@linux.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=patches@amperecomputing.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.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
all inboxes | Powered by JetHome®