Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Chris Scheers <chris@applied-synergy.com>
Subject: Unaligned memory access (Was: Re: EV7 will never ship?)
Date: Mon, 10 Sep 2001 17:32:48 -0500	[thread overview]
Message-ID: <3B9D3F90.4B220CB1@applied-synergy.com> (raw)
In-Reply-To: Pine.LNX.4.1Organization: LJK Software <Cv+puHsqiExg@eisner.encompasserve.org

Larry Kilgallen wrote:
> 
> In article <3B9A4043.B0EA696B@mcmail.maricopa.edu>, Carl Nelson <carl.nelson@mcmail.maricopa.edu> writes:
> >
> >
> > Bill Gunshannon wrote:
> >
> >>
> >> A question for any of our resident Alpha engineering experts. I have seen
> >> mentioned a number of times the concept that the Alpha can run either
> >> big-endian or little-endian.  Is there any performance impact on either
> >> one or would it perform equally well in either mode??
> >>
> >> Not really important, but I am curious.
> >>
> >> bill
> >>
> >
> >   I'm not an Alpha engineering expert, but I play one on TV...
> >
> >   I seem to remember, from snips of code in the architecture handbook and the
> > compiler writer's guide, that there is a one or two instruction penalty for
> > big-endian access under certain circumstances. IIRC these were mainly in the
> > case of certain unaligned memory access sequences. With aligned access there
> > were no differences, and with most, if not all, of the non-memory access
> > sequences there were no differences at all.
> 
> And that one or two instruction penalty is dwarfed by the penalty for
> using unaligned access in the first place.
> 
> Later VAXes also have a penalty for unaligned access, but it is hidden
> in the hardware.


AFAIK, there is a penalty for unaligned access in ALL VAXen.  The later
VAXen seem to do a better job of hiding the penalty.

Specifically, while rewriting some CPU bound code to use aligned data
(and to take better advantage of registers), I found the following
improvements in throughput:

MicroVAX II		4x
VAXstation 4000-90	2x
AlphaStation 255/233	4x

Testing with other similar generation processors gave similar numbers. 
(I have not had a chance to check this code on an EV5 or EV6.  Actually,
on Alphas, the code is fast enough that optimization is not really an
issue.  <grin>)

I attribute the difference between the MV II and VS4000 numbers to
caching.  The MV II does not have a memory cache and thus more directly
shows the difference in memory accesses (an unaligned read may require
two memory accesses, an unaligned write may require four).  The caching
in the later processors tends to minimize the impact of an unaligned
access.

-----------------------------------------------------------------------
Chris Scheers, Applied Synergy, Inc.

Voice: 817-237-3360            Internet: chris@applied-synergy.com 
  Fax: 817-237-3074


  parent reply	other threads:[~2001-09-10 22:32 UTC|newest]

Thread overview: 111+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-28 11:44 EV7 will never ship? Alan Greig
2001-08-28 13:19 ` Rob Young
2001-08-28 13:35   ` Nick Maclaren
2001-08-28 14:19     ` Larry Kilgallen
2001-08-28 14:46       ` Fred Kleinsorge
2001-08-28 15:21       ` Nick Maclaren
2001-08-28 16:15         ` Larry Kilgallen
2001-08-28 20:49       ` JF Mezei
2001-08-29 15:17         ` Fred Kleinsorge
2001-08-29 18:16           ` JF Mezei
2001-08-30 16:47             ` Fred Kleinsorge
2001-08-28 14:20     ` Rob Young
2001-08-28 14:51     ` Fred Kleinsorge
2001-08-28 15:17       ` Nick Maclaren
2001-08-28 16:13         ` Larry Kilgallen
2001-08-28 18:51           ` Nick Maclaren
2001-08-28 19:00             ` Rob Young
2001-08-28 22:27               ` Chris Morgan
2001-08-29  1:23                 ` JF Mezei
2001-08-29  7:07                   ` Wolfgang Rupp
2001-08-29 11:24                   ` Alan Greig
2001-08-29 11:48                     ` IA-64 Galaxies (was: EV7 will never ship?) Larry Kilgallen
2001-08-29 12:09                       ` Alan Greig
2001-08-29 13:14                         ` Larry Kilgallen
2001-08-29 18:45                           ` Bill Todd
2001-08-29 18:50                       ` Bill Todd
2001-08-29 20:57                         ` IA-64 Galaxies Hoff Hoffman
2001-08-29 17:28                     ` EV7 will never ship? JF Mezei
2001-08-29 20:20                       ` Rob Young
2001-08-30 16:54                       ` Fred Kleinsorge
2001-08-30 17:01                         ` Terry C. Shannon
2001-08-30 17:46                           ` Fred Kleinsorge
2001-08-31  7:46                             ` Terry C. Shannon
2001-09-01  2:04                           ` David J. Dachtera
2001-09-01  8:18                             ` Terry C. Shannon
2001-09-01 17:17                             ` Rob Young
2001-08-29 21:47                     ` Steve Reece
2001-08-29 22:14                       ` Larry Kilgallen
2001-08-30 13:18                         ` Peter da Silva
2001-08-30 14:08                           ` Larry Kilgallen
2001-08-30 17:06                             ` JF Mezei
2001-08-31  8:32                               ` Jan Vorbrueggen
2001-09-01 14:02                                 ` Peter da Silva
2001-08-29 23:18                     ` "Alan Winston - SSRL Admin Cmptg Mgr"
2001-09-03 22:19                     ` Roger Barnett
2001-09-06  0:15                       ` David J. Dachtera
2001-09-07 14:13                         ` Terry C. Shannon
2001-09-07 14:54                           ` Bill Todd
2001-09-07 16:39                             ` Rob Young
2001-09-07 17:02                               ` Bill Todd
2001-09-07 17:46                               ` Alan Greig
2001-09-10  7:50                                 ` Jan Vorbrueggen
2001-09-07 17:45                             ` Rob Young
2001-09-07 18:11                             ` Rob Young
2001-09-07 18:28                             ` Larry Kilgallen
     [not found]                             ` <LEtoQHLC$BWg@eisner.encOrganization: Encompasserve <9V30dg+R9VNR@eisner.encompasserve.org>
2001-09-07 18:56                               ` Bill Todd
2001-09-10  7:57                               ` Jan Vorbrueggen
2001-09-10 17:42                                 ` JF Mezei
2001-09-10 18:44                                   ` Bill Todd
2001-09-11  7:32                                   ` Jan Vorbrueggen
2001-09-07 19:53                             ` Rob Young
     [not found]                             ` <LEtoQHLC$BWg@eisner.encOrganization: Encompasserve <t+h4YxJabrZu@eisner.encompasserve.org>
2001-09-08  6:46                               ` Carl Nelson
2001-09-08 13:35                                 ` Bill Gunshannon
2001-09-08 15:58                                   ` Carl Nelson
2001-09-08 15:28                                 ` JF Mezei
2001-09-08 16:38                                   ` Carl Nelson
2001-09-08 17:08                                     ` Bill Todd
2001-09-09  1:46                                     ` JF Mezei
2001-09-09  2:29                                       ` Diane Dufresne
2001-09-09  7:48                                         ` jmfbahciv
2001-09-08 21:11                                 ` Larry Kilgallen
     [not found]                                 ` <Pine.LNX.4.1Organization: LJK Software <Cv+puHsqiExg@eisner.encompasserve.org>
2001-09-10  8:06                                   ` Jan Vorbrueggen
2001-09-10 22:32                                   ` Chris Scheers [this message]
     [not found]                             ` <LEtoQHLC$BWg@eisner.encOrganization: Encompasserve <odY36Fr4BsTy@eisner.encompasserve.org>
2001-09-10 10:10                               ` andrew harrison
2001-09-10 12:41                             ` Rob Young
2001-09-11 12:46                             ` Bob Koehler
2001-09-07 16:07                           ` andrew harrison
2001-09-07 14:25                         ` Peter LANGSTOEGER
2001-09-07 23:34                         ` Roger Barnett
2001-09-10  8:09                           ` Jan Vorbrueggen
2001-08-29 14:47                   ` Fred Kleinsorge
2001-08-28  0:27                     ` Dirk Munk
2001-08-31  8:53                       ` Jan Vorbrueggen
2001-08-30  4:00                     ` Keith Parris
2001-08-30 16:56                       ` Fred Kleinsorge
2001-08-30 19:47                       ` OpenVMS on Fault Tolerant IPF Hardware (was Re: EV7 will never ship?) Hoff Hoffman
2001-08-30 20:24                         ` JF Mezei
2001-08-31  7:49                         ` Terry C. Shannon
2001-08-31 16:52                           ` Jason O'Donnell
2001-08-31 17:21                             ` Terry C. Shannon
2001-08-31 21:03                           ` Bill Todd
     [not found]                   ` <i4hqot0p4bbg7i99v8a5ed4jfkp8g8q1uh@4ax.com>
2001-08-30 13:26                     ` EV7 will never ship? Peter da Silva
2001-08-30 18:24                       ` Serial Console? (was: Re: EV7 will never ship?) Hoff Hoffman
2001-08-30 19:14                         ` JF Mezei
2001-09-01 13:58                         ` Peter da Silva
2001-09-04 15:12                           ` Hoff Hoffman
2001-08-28 19:08             ` EV7 will never ship? Larry Kilgallen
2001-08-28 19:58               ` Nick Maclaren
2001-08-28 19:26             ` OpenVMS Common Source Code? (was Re: EV7 will never ship?) Hoff Hoffman
2001-08-29  9:17             ` EV7 will never ship? Nic Clews
2001-08-29  9:39               ` Nick Maclaren
2001-08-28 21:01           ` JF Mezei
2001-08-29 11:16           ` John F Carr
2001-08-28 17:06         ` John Reagan
2001-08-28 15:20     ` Wilko Bulte
2001-08-29 13:03     ` andrew harrison
2001-08-29 15:19       ` Fred Kleinsorge
2001-08-28 15:19 ` Wilko Bulte
2001-08-28 20:27 ` JF Mezei
2001-08-30  1:35 ` Terry C. Shannon
2001-08-30  6:30   ` Nick Maclaren
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