Re: Problem with the O(1) scheduler in 2.4.19

Tobias Ringstrom (tori@ringstrom.mine.nu)
Wed, 11 Sep 2002 23:14:06 +0200 (CEST)


On Wed, 11 Sep 2002, Tobias Ringstrom wrote:

> On Tue, 3 Sep 2002, Ingo Molnar wrote:
>
> > does -10 make it equivalent to the 2.4 behavior? Could you somehow measure
> > the priority where it's still acceptable? Ie. -8 or -9?
>
> I've done some more experimenting, and I've found something interesting.
> I've attached two very simple CPU hog programs.

...and now I've done some code study. I think the following is what
happens:

1. hog is sleeping, and is interactive
2. latency is running and is non-interactive
3. hog becomes runnable
4. latency is preemted and put on the expired list
5. hog runs uses it's timeslice (151 ms), but sice
it is interactive it stays on the active list and
continues to run.
6. after 4/11*2 s = 0.7 s (and a few expired timeslices)
hog is no longer interactive and is moved to the
expired list
7. latency runs after a 0.7 s break.

Do you agree?

In other words: Any nice-0 task that has been sleeping for two seconds or
more will be able to monololize the CPU for up to 0.7 seconds. Do you
agree that this is a problem, or am I being too narrow-minded? :-)

/Tobias

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