Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 1999 03:20:57 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Ville-Pertti Keinonen <will@iki.fi>
Cc:        current@freebsd.org, marcel@scc.nl, dillon@apollo.backplane.com
Subject:   Re: kernel: -mpreferred-stack-boundary=2 ??
Message-ID:  <Pine.BSF.4.10.9912030243481.3837-100000@alphplex.bde.org>
In-Reply-To: <19991202150047.5370.qmail@ns.demophon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2 Dec 1999, Ville-Pertti Keinonen wrote:

> > The times are for `time make depend; time make' after `make clean; sync;
> > sleep 1' (2 times for each run).  The stack may have been perfectly
> > misaligned for the default gcc.
> 
> It depends on the command line.  It took me a while to figure out what
> was going on the first time I benchmarked a program that ran much
> faster when run under one name compared to when it was run using
> another name...  ;--)

It also depends on the environment.  The bw_pipe benchmark in lmbench
is 20% (?) slower on some machines (P5's or K6/1's but not both) with
certain enviroments and/or command lines, because it puts its buffers
on the stack and the kernel doesn't bother to align the target addresses
to more than 4-byte boundaries.

> > Corresponding times for egcs with various PQ_L2_SIZE's a few months ago:
> 
> Properly benchmarking page coloring can't be done in a straightforward
> manner, since one of the desired effects is to prevent the page
> selection behavior from degrading over time.  Did you set up the
> machine specially for those runs?

I was improving page coloring, but wasn't very careful with those
benchmarks, only with makeworld benchmarks.  There was enough memory
(320MB) to not stress my color allocator at all for kernel builds.
That made kernel builds a bad benchmark for degradation of coloring
but good for a quick test that color allocation hasn't become too
expensive.

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912030243481.3837-100000>