Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ef9884e6f29bbe1075204f962a00f7533bf7e8f3
Commit:     ef9884e6f29bbe1075204f962a00f7533bf7e8f3
Parent:     296825cbe14d4c95ee9c41ca5824f7487bfb4d9d
Author:     Peter Zijlstra <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 31 22:45:22 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 22:45:22 2008 +0100

    sched: let +nice tasks have smaller impact
    
    Michel Dänzr has bisected an interactivity problem with
    plus-reniced tasks back to this commit:
    
     810e95ccd58d91369191aa4ecc9e6d4a10d8d0c8 is first bad commit
     commit 810e95ccd58d91369191aa4ecc9e6d4a10d8d0c8
     Author: Peter Zijlstra <[EMAIL PROTECTED]>
     Date:   Mon Oct 15 17:00:14 2007 +0200
    
     sched: another wakeup_granularity fix
    
          unit mis-match: wakeup_gran was used against a vruntime
    
    fix this by assymetrically scaling the vtime of positive reniced
    tasks.
    
    Bisected-by: Michel Dänzer <[EMAIL PROTECTED]>
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched_fair.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index cf958ae..6c091d6 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1106,7 +1106,11 @@ static void check_preempt_wakeup(struct rq *rq, struct 
task_struct *p)
        }
 
        gran = sysctl_sched_wakeup_granularity;
-       if (unlikely(se->load.weight != NICE_0_LOAD))
+       /*
+        * More easily preempt - nice tasks, while not making
+        * it harder for + nice tasks.
+        */
+       if (unlikely(se->load.weight > NICE_0_LOAD))
                gran = calc_delta_fair(gran, &se->load);
 
        if (pse->vruntime + gran < se->vruntime)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to