Re: [PATCH] Re: Pathological case identified from contest

Rik van Riel (riel@conectiva.com.br)
Mon, 21 Oct 2002 01:27:37 -0200 (BRST)


On Sun, 20 Oct 2002, Jim Houston wrote:
> Rik van Riel wrote:

> > How long does it take for a best priority process to go
> > down ?
>
> I don't know yet. My next step will be to instrument this.
> There are a many things that I can be tuned here, but I
> want the system to tune itself.

Negative feedback loops good. Magic numbers bad. ;)

Count me in for trying to get a self-tuning system working.
Note that I'll happily make one big exception for magic
numbers ... those magic numbers that directly influence how
the user percieves the machine's behaviour, since the speed
at which users observe things (and the timespan the machine
needs to react in) are fairly well known.

> > Or, for how much time can a newly started CPU hog starve
> > an older process ?

> The scheduler has no way to know which processes are interactive. In
> your example the user might be waiting for the Mozilla to start
> and not care if the movie player skips.

The scheduler might not care, but you can be pretty sure that
the user does care, and will complain loudly if program startup
stops the multimedia playback.

Fairness problems beyond a power-of-2-magnitude and multimedia
hickups are the two main things you can expect users to complain
about.

regards,

Rik

-- 
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/		http://distro.conectiva.com/
Current spamtrap:  <a href=mailto:"october@surriel.com">october@surriel.com</a>

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