From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 11 08:35:27 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF25D435 for ; Mon, 11 Aug 2014 08:35:27 +0000 (UTC) Received: from smtp.bsdes.net (115.Red-81-47-160.staticIP.rima-tde.net [81.47.160.115]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smtp.bsdes.net", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8FA4B21F9 for ; Mon, 11 Aug 2014 08:35:27 +0000 (UTC) Received: by smtp.bsdes.net (Postfix, from userid 1001) id 366ED22849; Mon, 11 Aug 2014 10:26:10 +0200 (CEST) Date: Mon, 11 Aug 2014 10:26:10 +0200 From: Victor Balada Diaz To: Sushanth Rai Subject: Re: Support for zero copy sockets Message-ID: <20140811082610.GF7828@equilibrium.bsdes.net> References: <1407171616.44440.YahooMailBasic@web181702.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1407171616.44440.YahooMailBasic@web181702.mail.ne1.yahoo.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2014 08:35:27 -0000 On Mon, Aug 04, 2014 at 10:00:16AM -0700, Sushanth Rai via freebsd-hackers wrote: > Hello, > > FreeBSD 10 release sources doesn't seem to have zero copy socket code anymore. What's is alternative to do zero_copy ? > > Thanks, > Sushanth You need to use sendfile(2). In the man page is stated that the implementation in FreeBSD is zero copy. You can also check: http://svnweb.freebsd.org/base?view=revision&revision=255608 -- La prueba más fehaciente de que existe vida inteligente en otros planetas, es que no han intentado contactar con nosotros.