From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 56C753041A for ; Wed, 25 Jul 2001 11:50:35 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f6PFiGW16660 for axp-list@listman.redhat.com; Wed, 25 Jul 2001 11:44:16 -0400 Received: from zmamail05.zma.compaq.com (zmamail05.zma.compaq.com [161.114.64.105]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f6PFiGg16654 for ; Wed, 25 Jul 2001 11:44:16 -0400 Received: by zmamail05.zma.compaq.com (Postfix, from userid 12345) id B7FBD1880; Wed, 25 Jul 2001 11:50:29 -0400 (EDT) Received: from mailrelay01.cce.cpqcorp.net (mailrelay01.cce.cpqcorp.net [16.47.68.171]) by zmamail05.zma.compaq.com (Postfix) with ESMTP id 978681D42 for ; Wed, 25 Jul 2001 11:50:29 -0400 (EDT) Received: by mailrelay01.cce.cpqcorp.net (Postfix, from userid 12345) id 370875E6; Wed, 25 Jul 2001 10:50:29 -0500 (CDT) Received: from linux04.mro.cpqcorp.net (linux04.mro.cpqcorp.net [16.129.9.99]) by mailrelay01.cce.cpqcorp.net (Postfix) with ESMTP id BD71E48B for ; Wed, 25 Jul 2001 10:50:28 -0500 (CDT) Received: (from jestabro@localhost) by linux04.mro.cpqcorp.net (8.9.3/8.9.3) id LAA17724 for axp-list@redhat.com; Wed, 25 Jul 2001 11:47:13 -0400 Date: Wed, 25 Jul 2001 11:47:13 -0400 From: Jay Estabrook To: axp-list@redhat.com Subject: Re: Unaligned accesses Message-ID: <20010725114713.C17679@linux04.mro.cpqcorp.net> Mail-Followup-To: axp-list@redhat.com References: <3B5E197B.50ED0967@iplink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <3B5E197B.50ED0967@iplink.net>; from alvin@iplink.net on Tue, Jul 24, 2001 at 08:57:31PM -0400 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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 -----------------------------------------------------------------------------