Re:[PATCH] sched/rt: Decrease number of calls of push_rt_task() in push_rt_tasks()

2013-02-05 Thread Kirill Tkhai
> On 2013/2/5 15:22, Kirill Tkhai wrote: > >>> Suppose we have a large number of cpus(say 4096), with the last one running >>> a low-priority task on it. Is it possible with this patch we will never >>> reach >>> the last cpu in case that previous cpu has complete the pulled task? >> >> Yes. Bu

Re: [PATCH] sched/rt: Decrease number of calls of push_rt_task() in push_rt_tasks()

2013-02-05 Thread Honghui Zhang
On 2013/2/5 15:22, Kirill Tkhai wrote: >> >> Suppose we have a large number of cpus(say 4096), with the last one running >> a low-priority task on it. Is it possible with this patch we will never reach >> the last cpu in case that previous cpu has complete the pulled task? > > Yes. But this patch

Re:[PATCH] sched/rt: Decrease number of calls of push_rt_task() in push_rt_tasks()

2013-02-04 Thread Kirill Tkhai
> On 2013/2/1 5:57, Kirill Tkhai wrote: > >> 31.01.2013, 20:08, "Steven Rostedt" : >> >>> On Mon, 2013-01-28 at 03:46 +0400, Kirill Tkhai wrote: >>> The patch aims to decrease the number of calls of push_rt_task() in push_rt_tasks(). It's not necessary to push more than 'num_

Re: [PATCH] sched/rt: Decrease number of calls of push_rt_task() in push_rt_tasks()

2013-02-04 Thread Honghui Zhang
On 2013/2/1 5:57, Kirill Tkhai wrote: > > > 31.01.2013, 20:08, "Steven Rostedt" : >> On Mon, 2013-01-28 at 03:46 +0400, Kirill Tkhai wrote: >> >>> The patch aims to decrease the number of calls of push_rt_task() >>> in push_rt_tasks(). >>> >>> It's not necessary to push more than 'num_online_c

Re: [PATCH] sched/rt: Decrease number of calls of push_rt_task() in push_rt_tasks()

2013-01-31 Thread Kirill Tkhai
31.01.2013, 20:08, "Steven Rostedt" : > On Mon, 2013-01-28 at 03:46 +0400, Kirill Tkhai wrote: > >>  The patch aims to decrease the number of calls of push_rt_task() >>  in push_rt_tasks(). >> >>  It's not necessary to push more than 'num_online_cpus() - 1' tasks. >>  If just pushed task doesn't

Re: [PATCH] sched/rt: Decrease number of calls of push_rt_task() in push_rt_tasks()

2013-01-31 Thread Steven Rostedt
On Mon, 2013-01-28 at 03:46 +0400, Kirill Tkhai wrote: > The patch aims to decrease the number of calls of push_rt_task() > in push_rt_tasks(). > > It's not necessary to push more than 'num_online_cpus() - 1' tasks. > If just pushed task doesn't leave its new CPU during our local call > of push_rt

[PATCH] sched/rt: Decrease number of calls of push_rt_task() in push_rt_tasks()

2013-01-27 Thread Kirill Tkhai
The patch aims to decrease the number of calls of push_rt_task() in push_rt_tasks(). It's not necessary to push more than 'num_online_cpus() - 1' tasks. If just pushed task doesn't leave its new CPU during our local call of push_rt_tasks() than we won't push another task to the CPU. If it leave or