mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Johannes Bechberger <me@mostlynerdless.de>
Cc: Andrea Righi <arighi@nvidia.com>,
	Changwoo Min <multics69@gmail.com>,
	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 09:38:06 -1000	[thread overview]
Message-ID: <ZzELnt99rwACjvIJ@slm.duckdns.org> (raw)
In-Reply-To: <42a6a270d7b01c02eb4d78bb408165641c6b435a@mostlynerdless.de>

Hello,

On Sun, Nov 10, 2024 at 04:09:15PM +0000, Johannes Bechberger wrote:
> 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.

Andrea, Changwoo, Johannes, can you guys reply with Acked-by so that I can
record the consensus in the commit?

> > > * 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.
> 
> I would like to second that we clarify the differences between the built-in
> and the non-builtin DSQs.

Will add that.

> 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.

If it is, that's accidental. I don't think we want to make a guarantee about
ordering stability. It's not like that's going to make any meaningful
difference.

Thanks.

-- 
tejun

  reply	other threads:[~2024-11-10 19:38 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
2024-11-10 19:38         ` Tejun Heo [this message]
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=ZzELnt99rwACjvIJ@slm.duckdns.org \
    --to=tj@kernel.org \
    --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=me@mostlynerdless.de \
    --cc=multics69@gmail.com \
    --cc=sched-ext@meta.com \
    --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®