Re: [PATCH] sched/fair: bring back select_idle_smt, but differently

2021-03-21 Thread Rik van Riel
On Sun, 2021-03-21 at 14:48 -0400, Rik van Riel wrote: > > + if (cpus_share_cache(prev, target)) { > + /* No idle core. Check if prev has an idle sibling. */ > + i = select_idle_smt(p, sd, prev); Uh, one minute. This is the wrong version of the patch. There's

[PATCH] sched/fair: bring back select_idle_smt, but differently

2021-03-21 Thread Rik van Riel
Mel Gorman did some nice work in 9fe1f127b913 ("sched/fair: Merge select_idle_core/cpu()"), resulting in the kernel being more efficient at finding an idle CPU, and in tasks spending less time waiting to be run, both according to the schedstats run_delay numbers, and according