From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id E9AF040211 for ; Mon, 14 Oct 2002 21:38:15 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g9F1cFk00515 for axp-list@listman.redhat.com; Mon, 14 Oct 2002 21:38:15 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g9F1cFf00509 for ; Mon, 14 Oct 2002 21:38:15 -0400 Received: from ellpspace.math.ualberta.ca (ellpspace.math.ualberta.ca [129.128.207.67]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g9F1Hnw25798 for ; Mon, 14 Oct 2002 21:17:49 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.11.6/8.11.6) id g9F1c3R16643 for axp-list@redhat.com; Mon, 14 Oct 2002 19:38:03 -0600 Date: Mon, 14 Oct 2002 19:38:03 -0600 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: unaligned traps question Message-ID: <20021014193803.A16602@ellpspace.math.ualberta.ca> References: <01da01c273e4$d5c57320$35de2b09@Viswanadha> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <01da01c273e4$d5c57320$35de2b09@Viswanadha>; from ram@jtcsv.com on Mon, Oct 14, 2002 at 05:50:18PM -0700 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 Mon, Oct 14, 2002 at 05:50:18PM -0700, Ram Viswanadha wrote: > I upgraded to RH 7.2 (stock kernel and GCC) and now I am not seeing any > unaligned trap messages. > I read Rich Payne's mails in the archives and they suggest that the problems > are in users code not in the kernel. Correct. > So there are two possibilities, since my code has not changed: > a) The kernel has become more lenient and is not producing any unaligned > trap messages. > b) GCC had a bug which produced unaligned data which has hence been fixed. Most likely seems to be the third option - printk in a kernel code which was producing these messages was turned off. :-) Unless you can show otherwise assume that "unaligned access" means that your code has bugs. Even if your kernel is silent about these, which does not mean at all that it is more "lenient", they are still bugs. On many ocasions "unaligned access" messages are side-effects, not causes, of killer bugs. Other times your kernel will trap, do a fixup, and move along but you will get a performance hit. If this happens once per some infrequently used program this is not a big deal. If this is in some widely used library then this may be significant. Michal