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.44.254]) by listman.redhat.com (Postfix) with ESMTP id 5210D3EA08 for ; Mon, 10 Dec 2001 15:14:05 -0500 (EST) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id fBAKE5p02411 for ; Mon, 10 Dec 2001 15:14:05 -0500 Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id fBAKE5d20066 for axp-list@listman.redhat.com; Mon, 10 Dec 2001 15:14:05 -0500 Received: from ztxmail05.ztx.compaq.com (ztxmail05.ztx.compaq.com [161.114.1.209]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id fBAKE4w20061 for ; Mon, 10 Dec 2001 15:14:04 -0500 Received: by ztxmail05.ztx.compaq.com (Postfix, from userid 12345) id 273CD13EB; Mon, 10 Dec 2001 14:13:57 -0600 (CST) Received: from mailrelay01.cce.cpqcorp.net (mailrelay01.cce.cpqcorp.net [16.47.68.171]) by ztxmail05.ztx.compaq.com (Postfix) with ESMTP id 832F4D04 for ; Mon, 10 Dec 2001 14:13:57 -0600 (CST) Received: by mailrelay01.cce.cpqcorp.net (Postfix, from userid 12345) id 539C01F9D; Mon, 10 Dec 2001 14:13:57 -0600 (CST) Received: from linux04.mro.cpqcorp.net (linux04.mro.cpqcorp.net [16.129.9.99]) by mailrelay01.cce.cpqcorp.net (Postfix) with ESMTP id 0F7DD1D81 for ; Mon, 10 Dec 2001 14:13:57 -0600 (CST) Received: (from jestabro@localhost) by linux04.mro.cpqcorp.net (8.11.6/8.11.6) id fBAKBXP23272 for axp-list@redhat.com; Mon, 10 Dec 2001 15:11:33 -0500 Date: Mon, 10 Dec 2001 15:11:33 -0500 From: Jay Estabrook To: axp-list@redhat.com Subject: Re: Kernel unaligned accesses Message-ID: <20011210151133.A23257@linux04.mro.cpqcorp.net> Mail-Followup-To: Jay Estabrook , axp-list@redhat.com References: <20011210194513.7400.qmail@web11204.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011210194513.7400.qmail@web11204.mail.yahoo.com>; from tomdropka@yahoo.com on Mon, Dec 10, 2001 at 11:45:13AM -0800 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, Dec 10, 2001 at 11:45:13AM -0800, Tom Dropka wrote: > > I've got an SX164 running 2.4.16 and RH 7.1 with a D-Link 530TX (Via > Rhine II) Ethernet card. I'm seeing lots of kernel unaligned accesses > whenever networking is enabled, but no user unaligned accesses. Is this a change in behavior noted with the (assumed) new kernel, versus a 2.2 kernel, with the same card? > Before I start trying different kernels or different Ethernet cards, > I'd like to know if this is "normal" behavior -- i.e., is this a > problem at all? does the TCP/IP stack on Alphas always generate > unaligned accesses? is it a driver problem? No, it's not normal behavior, so long as the driver-writer has somehow handled or planned for those places where unaligned accesses might take place on certain platforms. Don Becker's drivers, when "adjusted" for Alpha, force a copy of the data from the "raw" buffer to another buffer where the data will be appropriately aligned, thus avoiding any unaligned accesses at the price of the packet copy. > It doesn't seem to be hurting performance, but I guess I assumed that > the Linux kernel and (most) distributions and applications were 64-bit > clean. It is affecting performance on a per-packet basis. Whether it is hurting overall system performance is dependent on the amount of packets received and how fast the processor can "fixup" the unaligned accesses (eg EV6 does it faster than EV4 :-). --Jay++ ----------------------------------------------------------------------------- Jay A Estabrook Alpha Engineering - LINUX Project Compaq Computer Corp. - MRO1-2/K15 (508) 467-2080 200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com -----------------------------------------------------------------------------