Re: [PATCHSET sched_ext/for-7.5] sched_ext: Start ext_server from the tick

From: Tejun Heo

Date: Wed Nov 25 2026 - 11:57:18 EST


Hello, Peter.

On Wed, Nov 25, 2026 at 02:57:23PM +0100, Peter Zijlstra wrote:
> Could you perhaps punt the responsibility to the DSQ? Each DSQ has both:
>
> - a count of how many tasks it has
> - a sense of what CPUs it targets
>
> Right? So can it make sure nr_tasks CPUs of its destination are running
> ext_server?

The problem is that runnable tasks may not be on any DSQ. The BPF scheduler
can hold tasks in its own data structures between ops.enqueue() and
ops.dispatch(), and the newer schedulers do. Also, only local DSQs have
target CPUs. Any CPU's ops.dispatch() can consume from a user DSQ. So, all
the kernel can tell is that something is runnable, and only ops.dispatch()
knows which CPU it is for.

Thanks.

--
tejun