Re: patch-O1int-0306281420 for 2.5.73 interactivity

pat erley (paterley@drunkencodepoets.com)
Sat, 28 Jun 2003 16:26:56 -0400


I made a small error when I sent Con a piece of magic I wrote up to help the sleep period.

what it says right now:

/kernel/sched.c around line 325

sleep_period = (sleep_period *
17 * sleep_period / ((17 * sleep_period / (5 * tau) + 2) * 5 * tau));
----------------------------------------------------------^

it should be:

sleep_period = (sleep_period *
17 * sleep_period / ((17 * sleep_period / (5 * tau + 2)) * 5 * tau));
--------------------------------------------------------------^

stupid parenthesis.

a little background. what this essentially is is a taylor approximation of the function ln(66x+1) normalized. ln(66x+1) happens to do a great job oas a weighting function on the range of 0 to 1, and because the input only happens to range from 0 to 1, only 2 terms were needed to do a 'good enough' job.

Pat

-- 
-
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/