Re: 2.6.0-test9 - poor swap performance on low end machines

From: Roger Luethi
Date: Wed Dec 10 2003 - 18:22:11 EST


On Wed, 10 Dec 2003 16:04:16 -0500, Rik van Riel wrote:
> > For me this discussion just confirmed that my approach fails to draw
> > much interest, either because there are better alternatives or because
> > heavy paging and medium thrashing are generally not considered
> > interesting problems.
>
> I'm willing to take over this work if you really want
> to throw in the towel. It has to be done, simply to
> make Linux better able to deal with load spikes.

I am willing to keep my work up if I don't have to pull this alone. As
far as thrashing is concerned, the VM changed significanly even during
the -test series and I expect that to continue once 2.6.0 is released.
It would be good to get help from the people who made those changes --
they should know their stuff best, after all.

For one, we could look at the regression in test3 which might be easier
to fix than others because the changes haven't been buried under dozens
of later kernels. Some time ago, I took some notes about how the two
patches I mentioned in an earlier message worked together to change
the pageout patterns. Is that something we could start with?

Setting up some regular regression testing for new kernels might be a
good idea, too. Otherwise it's going to be Sisyphus work. For the time
being I can continue the testing, provided the harddisk that miraculously
survived hundreds of hours of thrashing tests keeps going.

> Under light to moderate overload, a load controlled system
> will be more responsive than a thrashing system.

That I doubt. 2.4 is very responsive under light overload -- every
process is mostly in memory and ready to grab a few missing pages at any
time. Once you add load control, you have processes that are completely
evicted and stunned when they are needed. Of course it's a matter of
definition, too, so I'd go even as far as saying:

- It is light thrashing when load control has no advantage.

- It is medium thrashing when using load control is a toss-up. Probably
better throughput, but somewhat higher latency.

- It is heavy thrashing when load control is a winner in both regards.

I just made this up. It neatly resolves all arguments about when load
control is appropriate. Yeah, so it's a circular definition. Sue me.

> Heavy overload is probably a "docter, it hurts ..." case.

That's pretty much my thinking, too. Might still be worthwhile adding
some load control if there are more people like wli's Russian guy.

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