lkml.org 
[lkml]   [2013]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch v4 07/18] sched: set initial load avg of new forked task
On 02/12/2013 06:26 PM, Peter Zijlstra wrote:
> On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote:
>> + /*
>> + * set the initial load avg of new task same as its load
>> + * in order to avoid brust fork make few cpu too heavier
>> + */
>> + if (flags & ENQUEUE_NEWTASK)
>> + se->avg.load_avg_contrib = se->load.weight;
>
> I seem to have vague recollections of a discussion with pjt where we
> talk about the initial behaviour of tasks; from this haze I had the
> impression that new tasks should behave like full weight..
>

Here just make the new task has full weight..

> PJT is something more fundamental screwy?
>


--
Thanks
Alex


\
 
 \ /
  Last update: 2013-02-13 17:01    [W:0.124 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site