Re: LMbench results for 2.5.40

From: Larry McVoy (
Date: Tue Oct 08 2002 - 14:07:00 EST

On Tue, Oct 08, 2002 at 02:55:01PM -0400, Bill Davidsen wrote:
> On Tue, 1 Oct 2002, Larry McVoy wrote:
> > By the way, the place you will probably see variance in LMbench is in the
> > context switch benchmarks, it's almost certainly due to randomness in
> > cache layout and there isn't a thing we can do about it. You can run a
> > zillion runs to get an average but please realize that is an *average*.
> > The context switch number are accurate, the low ones represent no cache
> > collisions and the high ones represent lots of cache collisions.
> >
> > FYI. I don't like it either.
> Thank you, that explains some things I've seen in my context switching
> benchmark as well, which uses a bunch of different services to transfer
> tiny data from on process to another.
> Time for some statistical jiggery-pokery, dust off deviant mean or some
> such.

I personally think that you should try a scatter plot and you should
get something sort of like which
is read latency times scatter plotted nicely showing the effect of seeks
and the effects of rotational delay. The height of the band is what I'd
expect to see in the context switch results - there should be an even
distribution between the min and the max assuming that you can vary the
pages which get allocated when you run the tests.

The average is a misleading number, you really want a min/max style number.
I'd be quite interested if someone were to go off and do this.

Larry McVoy            	 lm at  
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:27 EST