Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f9153ee6c71cb9ab38de3b8ed66b1c3fa27c3f7d
Commit:     f9153ee6c71cb9ab38de3b8ed66b1c3fa27c3f7d
Parent:     5926c50b83b626991c8c38efbca2020ee96b215f
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 16 09:46:30 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 09:46:30 2007 +0200

    [PATCH] sched: improve weight-array comments
    
    improve the comments around the wmult array (which controls the weight
    of niced tasks). Clarify that to achieve a 10% difference in CPU
    utilization, a weight multiplier of 1.25 has to be used.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 3332bbb..a7284bc 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -736,7 +736,9 @@ static void update_curr_load(struct rq *rq, u64 now)
  *
  * The "10% effect" is relative and cumulative: from _any_ nice level,
  * if you go up 1 level, it's -10% CPU usage, if you go down 1 level
- * it's +10% CPU usage.
+ * it's +10% CPU usage. (to achieve that we use a multiplier of 1.25.
+ * If a task goes up by ~10% and another task goes down by ~10% then
+ * the relative distance between them is ~25%.)
  */
 static const int prio_to_weight[40] = {
 /* -20 */ 88818, 71054, 56843, 45475, 36380, 29104, 23283, 18626, 14901, 11921,
-
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