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 96EEC3F001 for ; Mon, 10 Dec 2001 15:49:50 -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 fBAKnop06252 for ; Mon, 10 Dec 2001 15:49:50 -0500 Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id fBAKnoe24434 for axp-list@listman.redhat.com; Mon, 10 Dec 2001 15:49:50 -0500 Received: from web11208.mail.yahoo.com (web11208.mail.yahoo.com [216.136.131.190]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id fBAKnnw24430 for ; Mon, 10 Dec 2001 15:49:50 -0500 Message-ID: <20011210204949.51405.qmail@web11208.mail.yahoo.com> Received: from [24.49.188.189] by web11208.mail.yahoo.com via HTTP; Mon, 10 Dec 2001 12:49:49 PST Date: Mon, 10 Dec 2001 12:49:49 -0800 (PST) From: Tom Dropka Subject: Re: Kernel unaligned accesses To: axp-list@redhat.com Cc: jay.estabrook@compaq.com In-Reply-To: <20011210151133.A23257@linux04.mro.cpqcorp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: --- Jay Estabrook wrote: > 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? Don't know; I haven't run a 2.2 kernel with this setup yet. I'm downloading a 2.2 kernel now; there shouldn't be any problem running a 2.2 kernel in a "2.4-enabled" RH 7.1 system, right? (I know there were several things to be done to upgrade from 2.2 to 2.4; any downgrade required?) BTW, I saw the same unaligned accesses with the stock RH 2.4.3-12 kernel, which is why I tried 2.4.16. > > 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. Thanks; now that I know it's a problem, I've got several million unaligned accesses to clean up. :-) Anybody else out there using the DFE-530TX on an Alpha system? > > 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 > ----------------------------------------------------------------------------- > > > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list Thanks, Tom __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com