Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: Kernel unaligned accesses
Date: Mon, 10 Dec 2001 15:11:33 -0500	[thread overview]
Message-ID: <20011210151133.A23257@linux04.mro.cpqcorp.net> (raw)
In-Reply-To: <20011210194513.7400.qmail@web11204.mail.yahoo.com>; from tomdropka@yahoo.com on Mon, Dec 10, 2001 at 11:45:13AM -0800

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
-----------------------------------------------------------------------------




  reply	other threads:[~2001-12-10 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-10 19:45 Kernel unaligned accesses Tom Dropka
2001-12-10 20:11 ` Jay Estabrook [this message]
2001-12-10 20:49   ` Tom Dropka
2001-12-11 11:01     ` Ivan Kokshaysky
  -- strict thread matches above, loose matches on Subject: below --
2001-12-11 13:57 Tom Dropka
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox