From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: Unaligned accesses
Date: Wed, 25 Jul 2001 11:47:13 -0400 [thread overview]
Message-ID: <20010725114713.C17679@linux04.mro.cpqcorp.net> (raw)
In-Reply-To: <3B5E197B.50ED0967@iplink.net>; from alvin@iplink.net on Tue, Jul 24, 2001 at 08:57:31PM -0400
On Tue, Jul 24, 2001 at 08:57:31PM -0400, alvin wrote:
>
> I have noticed some problem with accessing unaligned data.
>
> I have an application that has a bunch of accesses to shorts in a byte
> array. Not seeing any more alignment errors from the kernel I assumed
> that all was ok due to the fact that althought it is a byte array it
> seemed to be short aligned...
>
> Well this turns out to be wrong. forcing alignment and doing memcpy's
> made my problems go away.
You didn't describe the problem you were having...
> I was under the impression that the:
> 1) OS/Palcode handled unaligned accessed as a fault and although there
> is a performance penalty, that is all.
That should be right.
> 2) The kernel generated an error message for unaligned accesses.
It generates some informational messages, but not one for every
unaligned access (if it did, there'd be a flood for the more serious
transgressors).
So, a little more about the problem you saw, and the machine you are
running on, please...
--Jay++
-----------------------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------
next prev parent reply other threads:[~2001-07-25 15:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 0:02 Archives on www.lib.uaa.alaska.edu Mike Tibor
2001-07-25 0:04 ` James Fowler
2001-07-25 1:41 ` Larry Snyder
2001-07-25 20:28 ` Mike Tibor
2001-07-25 0:57 ` Unaligned accesses alvin
2001-07-25 15:47 ` Jay Estabrook [this message]
2001-07-25 20:41 ` alvin
2001-07-25 21:08 ` Christopher C. Chimelis
2001-07-25 21:15 ` Michal Jaegermann
2001-07-26 12:39 ` Ivan Kokshaysky
2001-07-26 12:40 ` Ivan Kokshaysky
2001-07-26 13:29 ` Jay Estabrook
2001-07-26 17:21 ` alvin
2001-07-26 18:45 ` Frank Palmieri
2001-07-27 2:17 ` 164SX memory Eric Brown
2001-07-27 4:48 ` kirk uriksun
2001-07-27 5:18 ` Maurice Hilarius
2001-08-06 9:59 ` Iso-H
2001-08-06 12:33 ` Rich Payne
2001-08-06 12:52 ` Iso-H
-- strict thread matches above, loose matches on Subject: below --
2001-07-25 11:56 Unaligned accesses Rick Gorton
1998-07-05 0:54 B. James Phillippe
1997-09-23 9:39 Sheer Panic
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