lkml.org 
[lkml]   [2000]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: Some questions about linux kernel.
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.070 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site