Re: [PATCH] token based thrashing control

From: Rik van Riel
Date: Wed Aug 04 2004 - 06:33:25 EST


On Wed, 4 Aug 2004, Song Jiang wrote:

> The intention behind the score = time/size is very sound, but
> I am not sure how sensitive the performance is to the formula.
> We may need to tune it carefully to make it valid.

[snip]

> Do we need to periodically compare the scores of registered processes?
> If yes, that would take queueing complexity.

Hmmm, good points. And my "queue of one" idea has the danger
of registering a process that doesn't want the token any more
by the time it's handed off...

Maybe we should use the "time/size" score to influence the
chance that a process gets to try and steal the token, in
effect just modifying the odds.

After all, thrashing should be a relatively rare situation,
so the code should be as low impact as possible...

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

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