mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Joel Fernandes <joelagnelf@nvidia.com>
Cc: John Stultz <jstultz@google.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Qais Yousef <qyousef@layalina.io>, Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	Valentin Schneider <vschneid@redhat.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ben Segall <bsegall@google.com>,
	Zimuzo Ezeozue <zezeozue@google.com>,
	Mel Gorman <mgorman@suse.de>, Will Deacon <will@kernel.org>,
	Waiman Long <longman@redhat.com>,
	Boqun Feng <boqun.feng@gmail.com>,
	"Paul E. McKenney" <paulmck@kernel.org>,
	Metin Kaya <Metin.Kaya@arm.com>,
	Xuewen Yan <xuewen.yan94@gmail.com>,
	K Prateek Nayak <kprateek.nayak@amd.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	David Vernet <void@manifault.com>,
	Andrea Righi <arighi@nvidia.com>,
	Changwoo Min <changwoo@igalia.com>,
	sched-ext@lists.linux.dev, kernel-team@android.com
Subject: Re: [RFC][PATCH] sched/ext: Split curr|donor references properly
Date: Sat, 6 Dec 2025 05:59:09 -1000	[thread overview]
Message-ID: <aTRSzTVeGfME1N5y@slm.duckdns.org> (raw)
In-Reply-To: <c31bc7c2-52b4-4a91-ae0f-259411145432@nvidia.com>

Hello,

On Sat, Dec 06, 2025 at 09:56:50AM -0500, Joel Fernandes wrote:
...
> At a high level, my understanding is BPF schedulers have a lot of say in how to
> schedule including precise time slice and preemption control (give or take level
> of control and performance reasons). You can in fact have your own 'userland'
> queues that the kernel is unaware, IIUC. I am not sure if proxy exec will
> transparently work for all those usecases. It will probably work properly only
> when BPF scheduling in userland is simple and most of the scheduling is done by
> non-BPF kernel code.

Maybe this can be resolved by proxy execution explicitly telling sched_ext
to essentially dequeue the proxy-executed task so that it's kept more
transparent. However, I wonder whether it'd be a useful first step to first
deconflict the two config options. ie. Allow sched_ext loading disable proxy
execution dynamically so that people don't have to choose between the two
config options. I don't know the code intimately, but, from just skimming
it, it looks like it can be drained with a static key and some percpu
counters.

Thanks.

-- 
tejun

  reply	other threads:[~2025-12-06 15:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-06  0:14 John Stultz
2025-12-06  2:47 ` Joel Fernandes
2025-12-06  4:49   ` John Stultz
2025-12-06 14:56     ` Joel Fernandes
2025-12-06 15:59       ` Tejun Heo [this message]
2025-12-06 19:30         ` Joel Fernandes
2025-12-07  8:54   ` Andrea Righi
2025-12-07  9:12     ` Andrea Righi

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=aTRSzTVeGfME1N5y@slm.duckdns.org \
    --to=tj@kernel.org \
    --cc=Metin.Kaya@arm.com \
    --cc=arighi@nvidia.com \
    --cc=boqun.feng@gmail.com \
    --cc=bsegall@google.com \
    --cc=changwoo@igalia.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=dietmar.eggemann@arm.com \
    --cc=joelagnelf@nvidia.com \
    --cc=jstultz@google.com \
    --cc=juri.lelli@redhat.com \
    --cc=kernel-team@android.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=qyousef@layalina.io \
    --cc=rostedt@goodmis.org \
    --cc=sched-ext@lists.linux.dev \
    --cc=tglx@linutronix.de \
    --cc=vincent.guittot@linaro.org \
    --cc=void@manifault.com \
    --cc=vschneid@redhat.com \
    --cc=will@kernel.org \
    --cc=xuewen.yan94@gmail.com \
    --cc=zezeozue@google.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®