Re: [patch] sched: improve fairness, v3

Ingo Molnar
2007-03-31T10:11:49Z

* Ingo Molnar <mingo@elte.hu> 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;
}