Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-15 Thread Li, Aubrey
On 2020/9/15 17:23, Vincent Guittot wrote: > On Tue, 15 Sep 2020 at 10:47, Jiang Biao wrote: >> >> Hi, Vincent >> >> On Mon, 14 Sep 2020 at 20:26, Vincent Guittot >> wrote: >>> >>> On Sun, 13 Sep 2020 at 05:59, Jiang Biao wrote: Hi, Aubrey On Fri, 11 Sep 2020 at 23:48,

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-15 Thread Vincent Guittot
On Tue, 15 Sep 2020 at 10:47, Jiang Biao wrote: > > Hi, Vincent > > On Mon, 14 Sep 2020 at 20:26, Vincent Guittot > wrote: > > > > On Sun, 13 Sep 2020 at 05:59, Jiang Biao wrote: > > > > > > Hi, Aubrey > > > > > > On Fri, 11 Sep 2020 at 23:48, Aubrey Li wrote: > > > > > > > > Added idle

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-15 Thread Jiang Biao
Hi, Vincent On Mon, 14 Sep 2020 at 20:26, Vincent Guittot wrote: > > On Sun, 13 Sep 2020 at 05:59, Jiang Biao wrote: > > > > Hi, Aubrey > > > > On Fri, 11 Sep 2020 at 23:48, Aubrey Li wrote: > > > > > > Added idle cpumask to track idle cpus in sched domain. When a CPU > > > enters idle, its

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-14 Thread Vincent Guittot
On Sun, 13 Sep 2020 at 05:59, Jiang Biao wrote: > > Hi, Aubrey > > On Fri, 11 Sep 2020 at 23:48, Aubrey Li wrote: > > > > Added idle cpumask to track idle cpus in sched domain. When a CPU > > enters idle, its corresponding bit in the idle cpumask will be set, > > and when the CPU exits idle, its

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-14 Thread Vincent Guittot
On Fri, 11 Sep 2020 at 15:28, Aubrey Li wrote: > > Added idle cpumask to track idle cpus in sched domain. When a CPU > enters idle, its corresponding bit in the idle cpumask will be set, > and when the CPU exits idle, its bit will be cleared. > > When a task wakes up to select an idle cpu,

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-14 Thread Qais Yousef
On 09/14/20 12:26, Valentin Schneider wrote: > > On 14/09/20 12:08, Qais Yousef wrote: > > On 09/14/20 11:31, Valentin Schneider wrote: > >> > >> On 12/09/20 00:04, Li, Aubrey wrote: > >> >>> +++ b/include/linux/sched/topology.h > >> >>> @@ -65,8 +65,21 @@ struct sched_domain_shared { > >> >>>

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-14 Thread Valentin Schneider
On 14/09/20 12:08, Qais Yousef wrote: > On 09/14/20 11:31, Valentin Schneider wrote: >> >> On 12/09/20 00:04, Li, Aubrey wrote: >> >>> +++ b/include/linux/sched/topology.h >> >>> @@ -65,8 +65,21 @@ struct sched_domain_shared { >> >>> atomic_t ref; >> >>> atomic_t nr_busy_cpus; >>

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-14 Thread Qais Yousef
On 09/14/20 11:31, Valentin Schneider wrote: > > On 12/09/20 00:04, Li, Aubrey wrote: > >>> +++ b/include/linux/sched/topology.h > >>> @@ -65,8 +65,21 @@ struct sched_domain_shared { > >>> atomic_t ref; > >>> atomic_t nr_busy_cpus; > >>> int has_idle_cores; > >>> +

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-14 Thread Valentin Schneider
On 12/09/20 00:04, Li, Aubrey wrote: >>> +++ b/include/linux/sched/topology.h >>> @@ -65,8 +65,21 @@ struct sched_domain_shared { >>> atomic_tref; >>> atomic_tnr_busy_cpus; >>> int has_idle_cores; >>> + /* >>> +* Span of all idle CPUs in this domain.

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-12 Thread Jiang Biao
Hi, Aubrey On Fri, 11 Sep 2020 at 23:48, Aubrey Li wrote: > > Added idle cpumask to track idle cpus in sched domain. When a CPU > enters idle, its corresponding bit in the idle cpumask will be set, > and when the CPU exits idle, its bit will be cleared. > > When a task wakes up to select an idle

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-11 Thread Li, Aubrey
On 2020/9/12 7:04, Li, Aubrey wrote: > On 2020/9/12 0:28, Qais Yousef wrote: >> On 09/10/20 13:42, Aubrey Li wrote: >>> Added idle cpumask to track idle cpus in sched domain. When a CPU >>> enters idle, its corresponding bit in the idle cpumask will be set, >>> and when the CPU exits idle, its bit

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-11 Thread Li, Aubrey
On 2020/9/12 0:28, Qais Yousef wrote: > On 09/10/20 13:42, Aubrey Li wrote: >> Added idle cpumask to track idle cpus in sched domain. When a CPU >> enters idle, its corresponding bit in the idle cpumask will be set, >> and when the CPU exits idle, its bit will be cleared. >> >> When a task wakes

Re: [RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-11 Thread Qais Yousef
On 09/10/20 13:42, Aubrey Li wrote: > Added idle cpumask to track idle cpus in sched domain. When a CPU > enters idle, its corresponding bit in the idle cpumask will be set, > and when the CPU exits idle, its bit will be cleared. > > When a task wakes up to select an idle cpu, scanning idle

[RFC PATCH v1 1/1] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-11 Thread Aubrey Li
Added idle cpumask to track idle cpus in sched domain. When a CPU enters idle, its corresponding bit in the idle cpumask will be set, and when the CPU exits idle, its bit will be cleared. When a task wakes up to select an idle cpu, scanning idle cpumask has low cost than scanning all the cpus in