From: "Johannes Bechberger" <me@mostlynerdless.de>
To: "Andrea Righi" <arighi@nvidia.com>, "Changwoo Min" <multics69@gmail.com>
Cc: tj@kernel.org, void@manifault.com, linux-kernel@vger.kernel.org,
kernel-team@meta.com, sched-ext@meta.com, ggherdovich@suse.com,
dschatzberg@meta.com, yougmark94@gmail.com, changwoo@igalia.com,
kernel-dev@igalia.com
Subject: Re: [PATCH 2/3] sched_ext: Rename scx_bpf_consume() to scx_bpf_dsq_move_to_local()
Date: Sun, 10 Nov 2024 16:09:15 +0000 [thread overview]
Message-ID: <42a6a270d7b01c02eb4d78bb408165641c6b435a@mostlynerdless.de> (raw)
In-Reply-To: <ZzCej_1NNr2wB0AD@gpd3>
Hello all,
the changes look really good and the renaming will make it much easier
to explain what a simple scheduler does, lowering the entry barrier.
> > * Insert @p into the vtime priority queue of the DSQ identified by @dsq_id.
> > - * Tasks queued into the priority queue are ordered by @vtime and always
> > - * consumed after the tasks in the FIFO queue. All other aspects are identical
> > - * to scx_bpf_dsq_insert().
> > + * Tasks queued into the priority queue are ordered by @vtime. All other aspects
> > + * are identical to scx_bpf_dsq_insert().
> >
> > I suggest keeping this part, "and always consumed after the tasks
> > in the FIFO queue." Otherwise, IIRC, there is no place to explain
> > the priority between FIFO and priority DSQs explicitly.
> >
> I think we don't allow anymore to use the FIFO queue and the prio queue
> at the same time. Maybe we should clarify this here and also mention
> that we can't use scx_bpf_dsq_insert_vtime() with the built-in DSQs.
>
> Thanks,
> -Andrea
>
I would like to second that we clarify the differences between the built-in
and the non-builtin DSQs.
Also: Could we mention that the priority queue is stable? If I remember correctly,
then tasks with the same priority are scheduled in a FIFO manner.
Regards
Johannes
next prev parent reply other threads:[~2024-11-10 16:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-09 19:48 [PATCHSET sched_ext/for-6.13] sched_ext: Rename dispatch and consume kfuncs Tejun Heo
2024-11-09 19:48 ` [PATCH 1/3] sched_ext: Rename scx_bpf_dispatch[_vtime]() to scx_bpf_dsq_insert[_vtime]() Tejun Heo
2024-11-09 19:48 ` [PATCH 2/3] sched_ext: Rename scx_bpf_consume() to scx_bpf_dsq_move_to_local() Tejun Heo
2024-11-10 10:03 ` Changwoo Min
2024-11-10 11:52 ` Andrea Righi
2024-11-10 16:09 ` Johannes Bechberger [this message]
2024-11-10 19:38 ` Tejun Heo
2024-11-09 19:48 ` [PATCH 3/3] sched_ext: Rename scx_bpf_dispatch[_vtime]_from_dsq*() -> scx_bpf_dsq_move[_vtime]*() Tejun Heo
2024-11-10 11:45 ` [PATCHSET sched_ext/for-6.13] sched_ext: Rename dispatch and consume kfuncs Andrea Righi
2024-11-10 20:02 Tejun Heo
2024-11-10 20:02 ` [PATCH 2/3] sched_ext: Rename scx_bpf_consume() to scx_bpf_dsq_move_to_local() Tejun Heo
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=42a6a270d7b01c02eb4d78bb408165641c6b435a@mostlynerdless.de \
--to=me@mostlynerdless.de \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=dschatzberg@meta.com \
--cc=ggherdovich@suse.com \
--cc=kernel-dev@igalia.com \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=multics69@gmail.com \
--cc=sched-ext@meta.com \
--cc=tj@kernel.org \
--cc=void@manifault.com \
--cc=yougmark94@gmail.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®