Re: [PATCH 2/7] sched_ext: Add an event, SCX_EVENT_OFFLINE_LOCAL_DSQ

From: Tejun Heo
Date: Thu Jan 16 2025 - 20:37:40 EST


On Fri, Jan 17, 2025 at 12:15:38AM +0900, Changwoo Min wrote:
...
> diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
> index 7e12d5b8322e..8054e4e5ed0c 100644
> --- a/kernel/sched/ext.c
> +++ b/kernel/sched/ext.c
> @@ -1467,6 +1467,12 @@ struct scx_event_stat {
> * the core scheduler code silently picks a fallback CPU.
> */
> u64 INVAL_SELECT_CPU;
> +
> + /*
> + * When dispatching to a local DSQ, the CPU may have gone offline in
> + * the meantime. In this case, the task is bounced to the global DSQ.
> + */
> + u64 OFFLINE_LOCAL_DSQ;

Let's do components in descending order + event:

- SELECT_CPU_INVAL (or SELECT_CPU_FALLBACK)
- DISPATCH_LOCAL_DSQ_OFFLINE

Thanks.

--
tejun