Re: [PATCH 08/10] sched/fair: Steal work from an overloaded CPU when CPU goes idle

2018-10-25 Thread Steven Sistare
On 10/25/2018 9:48 AM, Valentin Schneider wrote: > Hi Steve, > > On 22/10/2018 15:59, Steve Sistare wrote: > [...] >> +/* >> + * Try to steal a runnable CFS task from a CPU in the same LLC as @dst_rq, >> + * and migrate it to @dst_rq. rq_lock is held on entry and return, but >> + * may be dropped

Re: [PATCH 08/10] sched/fair: Steal work from an overloaded CPU when CPU goes idle

2018-10-25 Thread Valentin Schneider
Hi Steve, On 22/10/2018 15:59, Steve Sistare wrote: [...] > @@ -9683,6 +9698,141 @@ void trigger_load_balance(struct rq *rq) > nohz_balancer_kick(rq); > } > > +/* > + * Search the runnable tasks in @cfs_rq in order of next to run, and find > + * the first one that can be migrated to @dst_

[PATCH 08/10] sched/fair: Steal work from an overloaded CPU when CPU goes idle

2018-10-22 Thread Steve Sistare
When a CPU has no more CFS tasks to run, and idle_balance() fails to find a task, then attempt to steal a task from an overloaded CPU in the same LLC, using the cfs_overload_cpus bitmap to efficiently identify candidates. To minimize search time, steal the first migratable task that is found when