From owner-freebsd-questions@FreeBSD.ORG Mon Oct 8 17:42:25 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A592116A417 for ; Mon, 8 Oct 2007 17:42:25 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (muon.bluestop.org [80.68.94.188]) by mx1.freebsd.org (Postfix) with ESMTP id 7380413C4A6 for ; Mon, 8 Oct 2007 17:42:25 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.draftnet (cran1.demon.co.uk [80.177.26.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id 4FB2A30356; Mon, 8 Oct 2007 18:42:23 +0100 (BST) Message-ID: <470A6BEF.4040808@cran.org.uk> Date: Mon, 08 Oct 2007 18:42:07 +0100 From: Bruce Cran User-Agent: Thunderbird 2.0.0.6 (X11/20070809) MIME-Version: 1.0 To: Wojciech Puchar References: <20071008103928.R69642@wojtek.tensor.gdynia.pl> In-Reply-To: <20071008103928.R69642@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: zero copy tcp send X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2007 17:42:25 -0000 Wojciech Puchar wrote: > i found sendfile(2) doing this. > but the question - does normal write(2) doing this when sending from > user process memory, not file? > > does memory have to be aligned special way,like to page boundary? > Yes - see zero_copy(9) -- Bruce