Re: Re: [PATCH 2/2] sched/fair: Fix premature check of WAKEUP_PREEMPTION

From: Abel Wu
Date: Wed Feb 26 2025 - 02:35:05 EST


On 2/26/25 1:15 AM, Vincent Guittot wrote:
On Tue, 25 Feb 2025 at 07:29, Abel Wu <wuyun.abel@xxxxxxxxxxxxx> wrote:

On 2/24/25 9:47 PM, Vincent Guittot wrote:

Or we should just remove it. I'm curious to know who used it during
the last couple of years ? Having in mind that lazy preemption adds

TBH I have never used this feature. But since Phil mentioned a case
in debugging DELAY_DEQUEUE, I think we'd better keep it, what do you
think?

Yes. And we need to figure out how to deal with the below as well

Hi Vincent, Tianchen,

I'm not sure this is the right way to do to let SCHED_IDLE be promoted
to the full NEED_RESCHED, as LAZY has relaxed responsiveness of normal
tasks to TICK_NSEC/2 in avg and workloads using fair policies should
adjust their expectations on it. And I would also recommend scheduling
policies playing with each other inside the scope of policy, while the
preemption model is another scope. Tying the two scopes together might
make things complicate, although I can imagine that certain workloads
or scenarios will benefit from it.

Best Regards,
Abel



another level as check_preempt_wakeup_fair() uses it so sched-idle
tasks might not always be immediately preempted anyway.

Right, thanks for mention that.




Thanks,
Abel