Re: [RFC PATCH 00/86] Make the kernel preemptible

From: Peter Zijlstra
Date: Wed Nov 08 2023 - 06:15:28 EST


On Wed, Nov 08, 2023 at 03:00:44AM -0800, Ankur Arora wrote:

> Ah now I see what you are saying.
>
> Quick thought: even if we were running under NONE, eventually you'll

Well, NONE, you get what you pay for etc..

> want to forcibly preempt out a CPU hog. So we will need to have
> at least this one enabled always:
>
> > * irqentry_exit_cond_resched <- irqentry_exit_cond_resched
>
> These two, it might make sense to toggle them based on model.
>
> > * preempt_schedule <- preempt_schedule
> > * preempt_schedule_notrace <- preempt_schedule_notrace
>
> Anyway let me think about this more and respond tomorrow.

That's more or less killing NONE. At that point there's really no point
in having it.

I would really suggest you start with transforming VOLUNTARY into the
LAZY thing, keep it as simple and narrow as possible.

Once you've got that done, then you can try and argue that NONE makes no
sense and try and take it out.

Smaller step etc..