From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27874 invoked from network); 29 Jun 1998 05:25:34 -0000 Received: from mail-out-0.tiac.net (199.0.65.247) by mail2.redhat.com with SMTP; 29 Jun 1998 05:25:34 -0000 Received: from mail-out-4.tiac.net (mail-out-4.tiac.net [199.0.65.16]) by mail-out-0.tiac.net (8.8.8/8.8.8) with ESMTP id BAA28502 for ; Mon, 29 Jun 1998 01:25:18 -0400 (EDT) (envelope-from jrp@jrp.tiac.net) From: jrp@jrp.tiac.net Received: from pentium.localnet (ppp0a002.std.com [208.192.100.2]) by mail-out-4.tiac.net (8.8.7/8.8.7) with ESMTP id FAA00228 for ; Mon, 29 Jun 1998 05:24:57 GMT (envelope-from jrp@jrp.tiac.net) Received: from jrp.tiac.net (jrp@localhost [127.0.0.1]) by pentium.localnet (8.8.7/8.8.7) with ESMTP id BAA01553 for ; Mon, 29 Jun 1998 01:14:04 -0400 Message-Id: <199806290514.BAA01553@pentium.localnet> Date: Mon, 29 Jun 1998 01:14:01 -0400 (EDT) Reply-To: jrp@jrp.tiac.net Subject: Re: Performance measurements To: axp-list@redhat.com In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII >> 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. So -mieee must reduce floating-point to a > single CPU pipeline, there's the performance penalty. Actually, it's not so much parallel instruction *issue* as it is parallel instruction *execution*. In other words, you can have several instructions "in the pipeline" when a floating exception occurs. The current Alpha architecture does not provide for precise floating point traps; depending on where in the pipeline the fault occurs, the PC reported may be an arbitrary number of instructions *after* the PC of the actual faulting instruction. The trivial solution to this, of course, is as you described: reduce the effective "pipeline" length to one by issuing trapb's after every floating-point instruction. This provides a significant performance penalty. That's why the Alpha architecture provides the "register write mask" and the register re-use rules, along with a fairly large number of floating-point registers. This way, a sophisticated compiler can try to keep the pipeline full by issuing several floating-point instructions before issuing a trapb... -- Jim Paradis jrp@jrp.tiac.net "The early bird gets the worm. http://www.tiac.net/users/jrp/index.html If you want something else for breakfast, get up later."