From owner-freebsd-arch@FreeBSD.ORG Mon Jan 9 15:00:32 2012 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5A1D106564A for ; Mon, 9 Jan 2012 15:00:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 1C4828FC08 for ; Mon, 9 Jan 2012 15:00:31 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q09EkO0m015010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Jan 2012 16:46:24 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q09EkNeO052979; Mon, 9 Jan 2012 16:46:23 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q09EkNC4052978; Mon, 9 Jan 2012 16:46:23 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 9 Jan 2012 16:46:23 +0200 From: Kostik Belousov To: Bruce Evans Message-ID: <20120109144623.GW31224@deviant.kiev.zoral.com.ua> References: <20120110005155.S2378@besplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6cExhHXXDEBW2NKZ" Content-Disposition: inline In-Reply-To: <20120110005155.S2378@besplex.bde.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: jilles@FreeBSD.org, Attilio Rao , flo@FreeBSD.org, Giovanni Trematerra , freebsd-arch@FreeBSD.org Subject: Re: pipe/fifo code merged. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 15:00:32 -0000 --6cExhHXXDEBW2NKZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 10, 2012 at 01:34:23AM +1100, Bruce Evans wrote: > For the socket layer, there is the ZERO_COPY_SOCKETS options. This > gives optimizations related to the ones for pipes. I have no experience > with it. It seems to be only for hardware sockets. It is apparently > not very popular or well maintained, since it isn't an any GENERIC. It is known to be (very) broken with regard to the vnode-backed mappings. AFAIR, after the COW kicks in, buffer code operates on the wrong page. In the best case, it results in the kernel panic, in the worst, the user data is corrupted. --6cExhHXXDEBW2NKZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk8K/b8ACgkQC3+MBN1Mb4g28ACeJFiMeJoj0HrHf0AZVpc0xybn yG4An2BspEMgFbnA6JoSfEMU0XZbkSv7 =ek7t -----END PGP SIGNATURE----- --6cExhHXXDEBW2NKZ--