• M
    sched: add avg_overlap decay · df1c99d4
    Mike Galbraith 提交于
    Impact: more precise avg_overlap metric - better load-balancing
    
    avg_overlap is used to measure the runtime overlap of the waker and
    wakee.
    
    However, when a process changes behaviour, eg a pipe becomes
    un-congested and we don't need to go to sleep after a wakeup
    for a while, the avg_overlap value grows stale.
    
    When running we use the avg runtime between preemption as a
    measure for avg_overlap since the amount of runtime can be
    correlated to cache footprint.
    
    The longer we run, the less likely we'll be wanting to be
    migrated to another CPU.
    Signed-off-by: NMike Galbraith <efault@gmx.de>
    Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <1236709131.25234.576.camel@laptop>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    df1c99d4
sched.c 235.6 KB