From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 18 09:11:24 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 1DE2816A4CE for ; Wed, 18 Aug 2004 09:11:24 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 670F543D6D for ; Wed, 18 Aug 2004 09:11:23 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (32839z73@localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id i7I9BLHL011203; Wed, 18 Aug 2004 13:11:21 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Wed, 18 Aug 2004 13:11:21 +0400 (MSD) From: Maxim Konovalov To: Dennis George In-Reply-To: <20040818083018.87246.qmail@web53902.mail.yahoo.com> Message-ID: <20040818131010.A11174@mp2.macomnet.net> References: <20040818083018.87246.qmail@web53902.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Zero copy Socket 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: Wed, 18 Aug 2004 09:11:24 -0000 On Wed, 18 Aug 2004, 01:30-0700, Dennis George wrote: > Hi all, > Is there any limitations in using zero copy socket.... I mean... do > the sender has to follow any specific protocol (like the packet > payload should be page alligned or so.) ??? Have you read zero_copy(9) man page? For sending data, there are no special requirements or capabilities that the sending NIC must have. The data written to the socket, though, must be at least a page in size and page aligned in order to be mapped into the kernel. If it does not meet the page size and alignment constraints, it will be copied into the kernel, as is normally the case with socket I/O. -- Maxim Konovalov