Re: [RFC PATCH] sched/fair: Skip PELT on !CONFIG_SMP
From: Peter Zijlstra
Date: Mon Nov 30 2026 - 03:13:59 EST
On Mon, Nov 30, 2026 at 09:24:18AM +0530, K Prateek Nayak wrote:
> Hello Chris, Mehmet,
>
> On 11/30/2026 1:23 AM, Christian Loehle wrote:
> >> I went by the cover letter of the series, which asked for UP
> >> improvements through "well-placed IS_ENABLED(CONFIG_SMP) kind of
> >> toggles". If seven of them in fair.c are too many for 7-22 % on the
> >> round trips of a UP board, is there a form you would accept?
> >>
> >
> > You'll be glad to hear that I don't call the shots here ;)
> > The feeling I get is that scheduler folks dream of dropping support
> > for CONFIG_SMP=n altogether if there was a way that they could...
>
> Peter and Ingo did drop a bunch of CONFIG_SMP specific build handling
> since UP builds were failing frequently from not testing those
> configs enough but I agree that even "well-placed" sprinkling of
> !IS_ENABLED(CONFIG_SMP) is pretty ugly in scheduler path.
>
> Enabling building with schedutil for UP is the right thing to do IMO
> too so ack on that direction.
Right, 99% (probably more) of the Linux kernels out there run SMP. It
makes absolutely no sense to invest in UP. All it generates are (mostly
trivial) build failures that nobody cares about.
Now; there was a patch that make PELT less expensive over-all:
https://patch.msgid.link/18e8d60c92652608.3137322e32332e3235332e313736.371783.0000sendgmr%40google.com
Which is a win for everybody.