Re: [patch] agv_slice not initialized

MOLNAR Ingo (mingo@chiara.csoma.elte.hu)
Sun, 3 Jan 1999 23:31:35 +0100 (CET)


On Sun, 3 Jan 1999, Andrea Arcangeli wrote:

> I think it will make more sense to not inherit the avg_slice from the
> parent.

> +++ linux/kernel/fork.c 1999/01/03 17:09:56
> + p->avg_slice = 0;

i have left it that way on purpose. There is no reason to assume that the
timeslice will get smaller after a fork. If we do anything like that then
we should reset the _parent's_ timeslice ... (thats the typical fork()
usage pattern: parent forks a child and goes sleeping [ie. waiting for
results] shortly afterwards).

-- mingo

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