Re: [BENCHMARK] Corrected gcc3.2 v gcc2.95.3 contest results

Andrew Morton
2002-09-23T18:31:34Z

Erik Andersen wrote:
>
> On Mon Sep 23, 2002 at 08:30:21PM +1000, Con Kolivas wrote:
> > Yes you make a very valid point and something I've been stewing over privately
> > for some time. contest runs benchmarks in a fixed order with a "priming" compile
> > to try and get pagecaches etc back to some sort of baseline (I've been trying
> > hard to make the results accurate and repeatable).
>
> It would sure be nice for this sortof test if there were
> some sort of a "flush-all-caches" syscall...
>

Yes, it would be nice.

Unmounting and remounting the test filesystem is usually
sufficient. Or you can run

main()
{
memset(malloc(1024*1024*1024), 0, 1024*1024*1024);
}

a couple of times.