Re: [BENCHMARK] scheduler tunables with contest - prio_bonus_ratio

Robert Love (rml@tech9.net)
19 Dec 2002 18:53:16 -0500


On Thu, 2002-12-19 at 18:42, Con Kolivas wrote:

> I guess this explains why my variable timeslice thingy in -ck helps on the
> desktop. Basically by shortening the timeslice it is masking the effect of
> the interactivity estimator under load. That is, it is treating the symptoms
> of having an interactivity estimator rather than tackling the cause.

You would probably get the same effect or better by setting
prio_bonus_ratio lower (or off).

Setting it lower will also give less priority bonus/penalty and not
reinsert the tasks so readily into the active array.

Something like the attached patch may help...

Robert Love

--- linux-2.5.52/kernel/sched.c 2002-12-19 18:47:53.000000000 -0500
+++ linux/kernel/sched.c 2002-12-19 18:48:05.000000000 -0500
@@ -66,8 +66,8 @@
int child_penalty = 95;
int parent_penalty = 100;
int exit_weight = 3;
-int prio_bonus_ratio = 25;
-int interactive_delta = 2;
+int prio_bonus_ratio = 5;
+int interactive_delta = 1;
int max_sleep_avg = 2 * HZ;
int starvation_limit = 2 * HZ;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/