Re: [PATCH] sched_ext: optimize sched_ext_entity layout for cache locality
From: Tejun Heo
Date: Tue Feb 24 2026 - 12:45:26 EST
On Tue, Feb 24, 2026 at 05:56:37AM +0000, David Carlier wrote:
> 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.
>
> Signed-off-by: David Carlier <devnexen@xxxxxxxxx>
Were you able to measure any different by any chance?
Thanks.
--
tejun