From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 12 07:29:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C8AF16A4CE for ; Thu, 12 Feb 2004 07:29:39 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4D3343D1D for ; Thu, 12 Feb 2004 07:29:38 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id i1CFTU5P014581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Feb 2004 10:29:30 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id i1CFTO9E041402; Thu, 12 Feb 2004 10:29:24 -0500 (EST) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16427.39892.876236.150143@grasshopper.cs.duke.edu> Date: Thu, 12 Feb 2004 10:29:24 -0500 (EST) To: Dung Patrick In-Reply-To: <1076596386.c6c7c260dkt@digitalme.com> References: <1076596386.c6c7c260dkt@digitalme.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid cc: freebsd-hackers@freebsd.org Subject: Re: Re: Zero copy sockets question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2004 15:29:39 -0000 Dung Patrick writes: > Correct me if I am wrong: > > To use the zero copy 'receive' on i386, you need to set the MTU to 4096 bytes(page size) or 4096 multiples. No, just larger than a page-size plus headers. FreeBSD's tcp automagically sets the mss to a page-sized multiple for large MTUs. And you need a nic which can do header splitting (ie, DMA the headers and the payload to different places in the host). > If it is true, until zero copy receive can do auto fitting, I think zero copy receive is more useful in gigabit ethernet than in fast ethernet (I assume MTU 1500(or smaller) is suitable for fast ethernet/Internet.) Fast ethernet is slow enough, it doesn't really make sense there. These days, one could argue that it really only makes sense for 10GbE. Drew