Re: [PATCH] sched_ext: optimize sched_ext_entity layout for cache locality
From: Tejun Heo
Date: Tue Feb 24 2026 - 13:14:40 EST
> Reorder struct sched_ext_entity to place ops_state, ddsp_dsq_id, and
> ddsp_enq_flags immediately after dsq. These fields are accessed together
> in the do_enqueue_task() and finish_dispatch() hot paths but were
> previously spread across three different cache lines. Grouping them on
> the same cache line reduces cache misses on every enqueue and dispatch
> operation.
Applied to sched_ext/for-7.1 with the subject line capitalized.
Thanks.
--
tejun