Re: [PATCH 2/3] sched: introduce per-cpu var next_cpu to track search limit

2018-04-24 Thread Subhra Mazumdar
On 04/24/2018 05:47 AM, Peter Zijlstra wrote: On Mon, Apr 23, 2018 at 05:41:15PM -0700, subhra mazumdar wrote: @@ -17,6 +17,7 @@ #include DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues); +DEFINE_PER_CPU_SHARED_ALIGNED(int, next_cpu); #if defined(CONFIG_SCHED_DEBUG) && defined

Re: [PATCH 2/3] sched: introduce per-cpu var next_cpu to track search limit

2018-04-24 Thread Peter Zijlstra
On Mon, Apr 23, 2018 at 05:41:15PM -0700, subhra mazumdar wrote: > @@ -17,6 +17,7 @@ > #include > > DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues); > +DEFINE_PER_CPU_SHARED_ALIGNED(int, next_cpu); > > #if defined(CONFIG_SCHED_DEBUG) && defined(HAVE_JUMP_LABEL) > /* > @@ -6018,6 +6019,

[PATCH 2/3] sched: introduce per-cpu var next_cpu to track search limit

2018-04-23 Thread subhra mazumdar
Introduce a per-cpu variable to track the limit upto which idle cpu search was done in select_idle_cpu(). This will help to start the search next time from there. This is necessary for rotating the search window over entire LLC domain. Signed-off-by: subhra mazumdar --- kernel/sched/core.c | 2