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 4D2AC2FFE7 for ; Thu, 26 Jul 2001 08:40:29 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f6QCYCF18892 for axp-list@listman.redhat.com; Thu, 26 Jul 2001 08:34:12 -0400 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f6QCYAg18885 for ; Thu, 26 Jul 2001 08:34:10 -0400 Received: (from ink@localhost) by jurassic.park.msu.ru (8.11.2/8.11.2) id f6QCeFV01345 for axp-list@redhat.com; Thu, 26 Jul 2001 16:40:15 +0400 Date: Thu, 26 Jul 2001 16:40:15 +0400 From: Ivan Kokshaysky To: axp-list@redhat.com Subject: Re: Unaligned accesses Message-ID: <20010726164015.B1019@jurassic.park.msu.ru> References: <3B5E197B.50ED0967@iplink.net> <20010725114713.C17679@linux04.mro.cpqcorp.net> <3B5F2EFD.1440F426@Iplink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B5F2EFD.1440F426@Iplink.net>; from alvin@iplink.net on Wed, Jul 25, 2001 at 03:41:33PM -0500 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 Wed, Jul 25, 2001 at 03:41:33PM -0500, alvin wrote: > > 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). > > Ahhhhhhhh the light goes on. Silly me I thought that since I have seen > messages and fixing the code makes them go away that all the problems > were tagged. Any quick pointer to the rule that is used for deciding > what to flag and not? To prevent a flood, the rate of "unaligned trap" messages is limited to 4 messages in 5 ms. Good place to look for unaligned traps is /proc/cpuinfo. There are counts for kernel/user unaligned accesses and address of the instruction caused last trap. > > So, a little more about the problem you saw, and the machine you are > > running on, please... > > I am running this on 2 systems a UP1100(last to show the problem) and a > noname. Note that unaligned "short int" accesses are special. In the code compiled for ev4/ev5 (i.e. without byte/word extensions) they do not generate unaligned traps and hence cannot be fixed by kernel. So if the short int falls into the adjacent quadwords (addr & 7 == 7), you'll have silent data corruption. Ivan.