Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Volker Barthelmann <volker@vb.franken.de>
To: axp-list@redhat.com
Subject: Re: Performance measurements
Date: Mon, 29 Jun 1998 01:01:57 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.3.95.980629004842.19353A-100000@vb.franken.de> (raw)
In-Reply-To: <Pine.SV4.3.90.980628123518.10123A-100000@gatecoms>



On Sun, 28 Jun 1998, Jeff Sturm wrote:
> On Sat, 27 Jun 1998, Volker Barthelmann wrote:
> > On Wed, 24 Jun 1998, Christopher C Chimelis wrote:
> > > 
> > > Yeah, runtime performance is killed by -mieee.  My only guess would be to
> > > implement a kernel-level handler for this (is this covered in the new math
> > > code in later 2.1 kernels?).
> > 
> > This should basically be a compiler-problem. AFAIK gcc currently just
> > inserts trap-barriers directly after every instruction that might cause an
> > exception therefore stalling the pipelines.
> > 
> > By trying to avoid reusing of the registers involved for some time and
> > moving the trap-barrier or eliminating it, the speed-penalty could 
> > probably be reduced for the most part.
> 
> >From what I understand the real problem is parallel instruction issue,
> not register usage.  The kernel cannot tell which instruction caused a 
> trap if -mieee is not used.

Alpha offers several versions of fp-instructions. When you want full
IEEE-compliance you have to choose the ones that trap on certain
situations, so that the trap-handler can emulate it in software.

If you compile with gcc without -mieee it simply uses instructions that
don't trap, AFAIK.

But even if you use the ones that trap you have the problem of imprecise
exceptions. The exception is not caused immediately but at some later
stage in the pipeline. Now if an instruction after the one causing an
exception modifies registers used by that one before the trap is
effectively executed, the handler cannot correctly emulate the
instruction.

Therefore gcc inserts trap-barriers immediately after every instruction
that might cause a trap. This barrier ensures that no further instructions
are executed before possible traps are executed, therefore stalling the
pipeline.

If you're not reusing registers of such an instructions you could omit the
trap-barrier and decrease the penalty.

>  So -mieee must reduce floating-point to a 
> single CPU pipeline, there's the performance penalty.

It's not that simple.

> So on Alpha we must live with not-quite-IEEE arithmetic at very fast 
> speeds, or true IEEE at somewhat slower speeds.

Yes. The question is how much slower.

Volker



  reply	other threads:[~1998-06-29 17:28 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-24  8:51 Performance measurements Martin Kahlert
1998-06-24  9:34 ` Robert Wilhelm
1998-06-24 19:54   ` Xsuse (Gloria X Server) Gavin
1998-06-24 20:50     ` B. James Phillippe
1998-06-24 23:29       ` Chris Ingrassia
1998-06-24 10:32 ` Performance measurements Stefan Schroepfer
1998-06-24 10:48   ` Martin Kahlert
1998-06-24 11:06     ` Martin Høy
1998-06-24 13:46     ` Stefan Schroepfer
1998-06-24 15:00       ` Robert Wilhelm
1998-06-24 15:16         ` Stefan Schroepfer
1998-06-25  7:46         ` Performance measurements (thanks and conclusion) Martin Kahlert
1998-06-24 15:25       ` Performance measurements Fabio Perroni
1998-06-24 15:28     ` Jeff Sturm
1998-06-24 15:59       ` Christopher C Chimelis
1998-06-24 17:19         ` Jeff Sturm
1998-06-24 18:12           ` Christopher C Chimelis
1998-06-24 19:05             ` Jeff Sturm
1998-06-24 20:38             ` Wes Bauske
1998-06-24 22:30               ` Jeff Sturm
1998-06-25  1:42               ` Richard Henderson
1998-06-25  1:48             ` Richard Henderson
1998-06-25 14:00               ` Jeff Sturm
1998-06-25 16:17                 ` Richard Henderson
1998-06-27 14:30             ` Volker Barthelmann
1998-06-28 16:41               ` Jeff Sturm
1998-06-28 23:01                 ` Volker Barthelmann [this message]
1998-06-29 18:11                   ` Jim Paradis
1998-06-29  5:14                 ` jrp
1998-06-24 16:05       ` Stefan Schroepfer
1998-06-24 16:58     ` Wes Bauske
1998-06-24 15:49 ` David S. Miller
     [not found] ` <Pine.GSO.3.96.980624190510.27225p-100000@markab.dbai.tuwien.ac.at>
1998-06-25  7:59   ` Martin Kahlert
1998-06-26  1:26 ` Ryan Kirkpatrick
1998-06-26 14:45   ` Chris Ingrassia
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox