Re: [RFCv2 6/6] sched/fair: Bound non idle core search by DIE domain
From: Parth Shah
Date: Thu May 16 2019 - 12:28:21 EST
On 5/15/19 10:14 PM, Peter Zijlstra wrote:
> On Wed, May 15, 2019 at 07:23:22PM +0530, Parth Shah wrote:
>> This patch specifies the sched domain to search for a non idle core.
>>
>> The select_non_idle_core searches for the non idle cores across whole
>> system. But in the systems with multiple NUMA domains, the Turbo frequency
>> can be sustained within the NUMA domain without being affected from other
>> NUMA.
>>
>> This patch provides an architecture specific implementation for defining
>> the turbo domain to make searching of the core to be bound within the NUMA.
>
> NAK, this is insane. You don't need arch hooks to find the numa domain.
>
The aim here is to limit searching for non-idle cores inside a NUMA node
(or DIE sched-domain), because some systems can sustain Turbo frequency by task
packing inside of a NUMA node. Hence turbo domain for them should be DIE.
Since not all systems have DIE domain, adding arch hooks can allow each arch to
override their turbo domain within which to allow task packing.
Thanks