Re: [PATCH] VM: Implements the swap-out page-clustering technique

From: Andrew Morton
Date: Fri Sep 05 2008 - 02:58:51 EST


On Fri, 05 Sep 2008 11:15:07 +0330 "Hamid R. Jahanjou" <hamid.jahanjou@xxxxxxxxx> wrote:

> Andrew Morton wrote:
> > I tried that once. The code all worked as-designed but didn't seem to
> > improve performance much across a spread of workloads.
> >
> > Benchmarks are essential, please. Good ones.
> Do you recommend any specific benchmarks for memory-related projects ?
> Which
> one did you use for your own implementation ?
>

Pretty much any and all benchmarks, when there's not enough memory
(boot with mem=). Kernel compiles, database benchmarks, you name it.
Basically anything which has a measurable execution time is relevant.

Designing and running these things is a lot of work and thought. And
it's an integral part of the development process, because some things
are going to get slower and others will show large inter-run variations
and then one needs to get in there and find explanations and hopefully
fixes.

For example, start with small and simple microbenchmarks: run two
processes which concurrently allocate 1*mem, then modify it all
linearly, then read it all linearly. Build up from there. Do not
dive into complex benchmarks on day 1, because you'll have no hope of
explaining the results which they produce.

Beware that behaviour on SMP can be very different from behaviour on
uniprocessor because of the relatively large duration of a timeslice.
Both must be tested.
--
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/