Re: [patch] sched: improve fairness, v3

From: Ingo Molnar
Date: Sat Mar 31 2007 - 06:12:19 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

> > also, could you possibly try these workloads you described with
> > Mike's latest patch too? Thanks,
>
> i.e. the one below.

plus the small patch below too.

Ingo

Index: linux/kernel/sched.c
===================================================================
--- linux.orig/kernel/sched.c
+++ linux/kernel/sched.c
@@ -3491,7 +3491,7 @@ static inline int expired_starving(struc
return 1;
if (!STARVATION_LIMIT)
return 0;
- if (jiffies - rq->switch_timestamp > STARVATION_LIMIT * rq->nr_running)
+ if (jiffies - rq->switch_timestamp > STARVATION_LIMIT)
return 1;
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/