Messages in this thread | | | Date | Thu, 4 Sep 2008 23:58:35 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] VM: Implements the swap-out page-clustering technique |
| |
On Fri, 05 Sep 2008 11:15:07 +0330 "Hamid R. Jahanjou" <hamid.jahanjou@gmail.com> 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.
| |