Re: [PATCH] sched_ext: Place dsq_vtime next to dsq_priq

From: Tejun Heo

Date: Thu Sep 24 2026 - 13:09:38 EST


Hello,

On Thu, Sep 24, 2026 at 09:14:46AM -0700, Usama Arif wrote:
> scx_dispatch_enqueue() calls rb_add() for a vtime-ordered DSQ while
> holding dsq->lock. At each level of the descent, scx_dsq_priq_less()
> loads the visited task's dsq_vtime, and that comparison selects rb_left
> or rb_right from the same task's dsq_priq. In the x86-64 benchmark
> configuration, these accesses fell on different 64-byte cache lines
> before this change, so a cold visited task could require a second cache
> line fill on the dependent descent path.

Applied to sched_ext/for-7.4.

Thanks.

--
tejun