lkml.org 
[lkml]   [2013]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v5 3/7] sched: set initial value of runnable avg for new forked task
    On 05/06/2013 09:45 AM, Alex Shi wrote:
    > We need initialize the se.avg.{decay_count, load_avg_contrib} for a
    > new forked task.
    > Otherwise random values of above variables cause mess when do new task
    > enqueue:
    > enqueue_task_fair
    > enqueue_entity
    > enqueue_entity_load_avg
    >
    > and make forking balancing imbalance since incorrect load_avg_contrib.
    >
    > set avg.decay_count = 0, and avg.load_avg_contrib = se->load.weight to
    > resolve such issues.
    >
    > Signed-off-by: Alex Shi <alex.shi@intel.com>

    Sorry for forget this:

    Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    --
    Thanks
    Alex


    \
     
     \ /
      Last update: 2013-05-07 05:01    [W:3.037 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site