Re: [PATCH] sched/fair: Don't let task_tick_cache() IPI dyntick CPUs

From: Valentin Schneider

Date: Mon Nov 23 2026 - 07:30:46 EST


On 20/11/26 16:40, Peter Zijlstra wrote:
> On Fri, Nov 20, 2026 at 12:02:49PM +0100, Valentin Schneider wrote:
>> > + /*
>> > + * If there is no root domain; there is no balancing, and none of this
>> > + * matters.
>> > + */
>> > + if (!rq->rd)
>> > + return;
>> > +
>>
>> What if the setup involves a separate root domain where all the CPUs are in
>> dynticks mode?
>>
>> Methinks the signal we want is:
>>
>> is that task on a NOHZ_FULL CPU with the tick disabled?
>>
>> If so then we shouldn't do anything about it. Let the other CPUs in its LLC
>> / RD run some balancing. If they're all dynticks, well then there is
>> nothing to do is there?
>>
>> And that should also apply to the NUMA stuff like you pointed out.
>
> If you have a root domain with more than 1 CPU in it, you get balancing,
> deal with it.

I think I can live with that. It means we mandate complete CPU isolation
for NOHZ_FULL to work, but then again that's what you should do in a sane
setup.