Re: [PATCH 06/18] sched: set initial load avg of new forked task as its load weight

2012-12-23 Thread Alex Shi
>> update_curr(cfs_rq); >> account_entity_enqueue(cfs_rq, se); >> - enqueue_entity_load_avg(cfs_rq, se, flags & ENQUEUE_WAKEUP); >> + enqueue_entity_load_avg(cfs_rq, se, flags & >> + (ENQUEUE_WAKEUP | ENQUEUE_NEWTASK)); > > It seems that just passing

Re: [PATCH 06/18] sched: set initial load avg of new forked task as its load weight

2012-12-20 Thread Namhyung Kim
On Mon, 10 Dec 2012 16:22:22 +0800, Alex Shi wrote: > New task has no runnable sum at its first runnable time, that make > burst forking just select few idle cpus to put tasks. > Set initial load avg of new forked task as its load weight to resolve > this issue. > > Signed-off-by: Alex Shi > --- >

[PATCH 06/18] sched: set initial load avg of new forked task as its load weight

2012-12-10 Thread Alex Shi
New task has no runnable sum at its first runnable time, that make burst forking just select few idle cpus to put tasks. Set initial load avg of new forked task as its load weight to resolve this issue. Signed-off-by: Alex Shi --- include/linux/sched.h |1 + kernel/sched/core.c |2 +-