Re: [RFC PATCH] sched: select_idle_core should select least utilized core

From: Peter Zijlstra
Date: Thu Jun 08 2017 - 15:59:20 EST


On Thu, Jun 08, 2017 at 03:26:32PM -0400, Subhra Mazumdar wrote:
> Current select_idle_core tries to find a fully idle core and if it fails
> select_idle_cpu next returns any idle cpu in the llc domain. This is not optimal
> for architectures with many (more than 2) hyperthreads in a core. This patch
> changes select_idle_core to find the core with least number of busy
> hyperthreads and return an idle cpu in that core.

Yeah, I think not. That makes select_idle_siblings _vastly_ more
expensive.