lkml.org 
[lkml]   [2008]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] restore sched_exec load balance heuristics
    Ken Chen wrote:

    > There are two callers to sched_balance_self(). In the sched_fork
    > path, sched_balance_self will balance the newly forked task. I think
    > it is OK to bounce a newly forked task to another CPU since current
    > CPU will be busy when fork returns in the parent process.

    What about vfork()?

    > And if sched_balance_self() needs to different between fork / exec
    > load balance, it has to check a flag from function argument, which I
    > think it is better to just short circuit in sched_exec() directly.

    From a cleanliness perspective, it make more sense to me for the
    decision as to whether or not to balance to be done in the "balance"
    function, not the "exec" function.

    Chris


    \
     
     \ /
      Last update: 2008-11-06 21:53    [W:0.046 / U:150.744 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site