Re: [PATCH RFC] sched_ext: Choose prev_cpu if idle and cache affine without WF_SYNC
From: Tejun Heo
Date: Mon Mar 17 2025 - 20:14:56 EST
On Mon, Mar 17, 2025 at 05:12:25PM -0700, Libo Chen wrote:
> Just as Peter said, this is whole wake affinity thing is highly workload
> dependent. We have seen cases where even if there are idle cores in the
> prev node, it's still beneficial to cross the NUMA boundary. Will it make
> more sense to have the BPF scheduler implement/alter some of logic here so
> it can fit to different workload?
Oh yeah, multiple SCX schedulers already implement their own select_cpu().
This discussion is just around the default implementation which can be used
if a BPF scheduler doesn't want to implement its own.
Thanks.
--
tejun