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