Re: VM Report was:Re: Break 2.4 VM in five easy steps

Tobias Ringstrom
2001-06-08T14:19:17Z

On Fri, 8 Jun 2001, Mike Galbraith wrote:
> I gave this a shot at my favorite vm beater test (make -j30 bzImage)
> while testing some other stuff today.

Could you please explain what is good about this test? I understand that
it will stress the VM, but will it do so in a realistic and relevant way?

Isn't the interesting case when you have a number of processes using lots
of memory, but only a part of all that memory is beeing actively used, and
that memory fits in RAM. In that case, the VM should make sure that the
not used memory is swapped out. In RAM you should have the used memory,
but also disk cache if there is any RAM left. Does the current VM handle
this case fine yet? IMHO, this is the case most people care about. It is
definately the case I care about, at least. :-)

I'm not saying that it's a completely uninteresting case when your active
memory is bigger than you RAM of course, but perhaps there should be other
algorithms handling that case, such as putting some of the swapping
processes to sleep for some time, especially if you have lots of processes
competing for the memory. I may be wrong, but it seems to me that your
testcase falls into this second category (also known as thrashing).

An at last, a humble request: Every problem I've had with the VM has been
that it either swapped out too many processes and used too much cache, or
the other way around. I'd really enjoy a way to tune this behaviour, if
possible.

/Tobias