Re: [RFC 0/2] Optimize the idle CPU search

2019-07-09 Thread Subhra Mazumdar
On 7/9/19 11:08 AM, Parth Shah wrote: On 7/9/19 5:38 AM, Subhra Mazumdar wrote: On 7/8/19 10:24 AM, Parth Shah wrote: When searching for an idle_sibling, scheduler first iterates to search for an idle core and then for an idle CPU. By maintaining the idle CPU mask while iterating through

Re: [RFC 0/2] Optimize the idle CPU search

2019-07-09 Thread Subhra Mazumdar
On 7/8/19 1:38 PM, Peter Zijlstra wrote: On Mon, Jul 08, 2019 at 10:24:30AM +0530, Parth Shah wrote: When searching for an idle_sibling, scheduler first iterates to search for an idle core and then for an idle CPU. By maintaining the idle CPU mask while iterating through idle cores, we can

Re: [RFC 0/2] Optimize the idle CPU search

2019-07-08 Thread Parth Shah
On 7/9/19 5:38 AM, Subhra Mazumdar wrote: > > On 7/8/19 10:24 AM, Parth Shah wrote: >> When searching for an idle_sibling, scheduler first iterates to search for >> an idle core and then for an idle CPU. By maintaining the idle CPU mask >> while iterating through idle cores, we can mark

Re: [RFC 0/2] Optimize the idle CPU search

2019-07-08 Thread Subhra Mazumdar
On 7/8/19 10:24 AM, Parth Shah wrote: When searching for an idle_sibling, scheduler first iterates to search for an idle core and then for an idle CPU. By maintaining the idle CPU mask while iterating through idle cores, we can mark non-idle CPUs for which idle CPU search would not have to

Re: [RFC 0/2] Optimize the idle CPU search

2019-07-08 Thread Parth Shah
On 7/8/19 1:38 PM, Peter Zijlstra wrote: > On Mon, Jul 08, 2019 at 10:24:30AM +0530, Parth Shah wrote: >> When searching for an idle_sibling, scheduler first iterates to search for >> an idle core and then for an idle CPU. By maintaining the idle CPU mask >> while iterating through idle cores,

Re: [RFC 0/2] Optimize the idle CPU search

2019-07-08 Thread Peter Zijlstra
On Mon, Jul 08, 2019 at 10:24:30AM +0530, Parth Shah wrote: > When searching for an idle_sibling, scheduler first iterates to search for > an idle core and then for an idle CPU. By maintaining the idle CPU mask > while iterating through idle cores, we can mark non-idle CPUs for which > idle CPU

[RFC 0/2] Optimize the idle CPU search

2019-07-07 Thread Parth Shah
When searching for an idle_sibling, scheduler first iterates to search for an idle core and then for an idle CPU. By maintaining the idle CPU mask while iterating through idle cores, we can mark non-idle CPUs for which idle CPU search would not have to iterate through again. This is especially