RE: Some questions about linux kernel.

From: Rik van Riel (riel@conectiva.com.br)
Date: Wed Mar 22 2000 - 15:28:20 EST


On Tue, 21 Mar 2000, Jones D (ISaCS) wrote:

> > > This probably about covers it. There may be some times when
> > > nice tasks are very important, but I can't think of any.
> > If the niced process is a simulation which has been running
> > for a week, you want to preserve it because otherwise a week
> > of work has been lost.
> > (yes, this is handled by my patch)
>
> This section of code from your patch suggests otherwise to me..
>
> + * Niced processes are probably less important; kernel/sched.c
> + * and include/linux/sched.h contain most info on scheduling.
> + */
> + if (p->priority < DEF_PRIORITY)
> + points <<= 1;
> +/*
>
>
> Or are we discussing a different patch ?

No. You forgot to read the rest ...

If a process has 1) been running long or
                 2) used lots of CPU time

then we'll lower its points....

regards,

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

http://www.conectiva.com/ http://www.surriel.com/

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



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:37 EST