From owner-freebsd-hackers Thu Jul 19 0:51:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.121.12]) by hub.freebsd.org (Postfix) with ESMTP id 58E3337B403; Thu, 19 Jul 2001 00:51:29 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.247.141.193.Dial1.SanJose1.Level3.net [209.247.141.193]) by harrier.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id AAA08568; Thu, 19 Jul 2001 00:51:27 -0700 (PDT) Message-ID: <3B5691A5.66486B63@mindspring.com> Date: Thu, 19 Jul 2001 00:52:05 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: hackers@FreeBSD.org, Matthew Jacob Subject: Re: x86 unaligned access followup. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin wrote: > > Also note that this will play hell with some of the recent > > copy avoidance changes made by Bill Paul to the ethernet > > drivers, to avoid the expense of copying the packet, with > > the knowledge that there would be an increased overhead in > > the resulting packet field unaligned accesses when decoding > > IP packets... [ ... ] > I didn't say it was a good thing, I was just saying how it was done. :) > From Bill's description of the network stuff, it sounds like the unaligned > access on x86 is cheaper than the copy that would otherwise be done, so we > don't want AC checks in that case anyways. I don't know if I entriely believe that... it depends on how big the average packets are. For a web server, for example, there is the initial request, and then there's ACK's, so the copy overhead is negligible, and might outweigh the unaligned access overhead, particularly if you could delay the copy until it was abosolutely necessary (e.g. avoid copying the 14 byte ethernet header, etc., and do the copy in ip_input() instead). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message