From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 11 18:21:16 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 5C70165F for ; Mon, 11 Aug 2014 18:21:16 +0000 (UTC) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1CD792EA6 for ; Mon, 11 Aug 2014 18:21:15 +0000 (UTC) Received: by mail-ig0-f174.google.com with SMTP id c1so4718692igq.13 for ; Mon, 11 Aug 2014 11:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dragondata.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=02MATqofKNBt/bct2hWLpXqqOoF+1SBkwhKYF3c3ofQ=; b=o69fwZokJ1Sgqq0Ma/Gdb4/Qj7qLr6iXOEsfHpRNqs16ubpTg3F5EhN21Ntg5YxVqz xS726K/YX8FtJsVT4OyNy5ciAL0khkBKyDADyd9rN9bFZLcNPSkKCmICmGn6hm4lJ2S6 r5KpihWWy9SDb7VhEVIinlbxkePQm+oS9Xp1w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=02MATqofKNBt/bct2hWLpXqqOoF+1SBkwhKYF3c3ofQ=; b=IPAcZWBEZ+ws3Xg3wA6uxps+AXIMCDzUPRS7aDFr2g7FWaWG9prc7s1bfodhb4zbZe Gv92kFSDfvFekpO5Ejl38HxgxStpwhPQH0ZBJ0oecYRzc1wf5BphZNl4/Ps4tJg6I5tf +P6XDndtvc7DEkLtH/dIGTyFUBA8UOaQ4nyybrBpiS34RviZ4Zf8OASV6zw3seZKqtGh fj5FcQC37cx5JeqCiMUrMwWm1OhaYsaMYqz7DGvNZJjSbe0ZmGHCqrjB9EYletBFg63O h1vVd9J0RZ4NRxsdEK/RGlJQLqad3iPUXV3IlBowhBUXb8MDSWqBr22U9NB0FnrpEfPe Uo9w== X-Gm-Message-State: ALoCoQnHY+HFiRCnYfmhr0uAjn4EStvH5NP0rgLJTUv9da8Rp9VnX/o+hM+5F5q3Mq03pvRPagJ6 X-Received: by 10.42.91.200 with SMTP id q8mr32897083icm.63.1407781275281; Mon, 11 Aug 2014 11:21:15 -0700 (PDT) Received: from vpn132.rw1.your.org (vpn132.rw1.your.org. [204.9.51.132]) by mx.google.com with ESMTPSA id om5sm51035980igb.19.2014.08.11.11.21.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Aug 2014 11:21:14 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Support for zero copy sockets From: Kevin Day In-Reply-To: Date: Mon, 11 Aug 2014 13:21:12 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <4F4BB4BC-B916-4808-A267-4002FFB8932B@dragondata.com> References: <1407171616.44440.YahooMailBasic@web181702.mail.ne1.yahoo.com> <20140811082610.GF7828@equilibrium.bsdes.net> To: Adrian Chadd X-Mailer: Apple Mail (2.1878.6) Cc: Victor Balada Diaz , Sushanth Rai , "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 18:21:16 -0000 >=20 > I'd like to reintroduce a zero copy socket IO method for at least > write that doesn't rely on sendfile. >=20 > The zero-copy socket page flipping thing was interesting because IIRC > tried to work for both sending and receiving socket data. Doing that > via an API would be nicer. >=20 > So, if people have an idea for how it could be done / what the API > looks like then I'm all ears. >=20 If FreeBSD could be API compatible with Linux=92s splice(2) and/or = tee(2), that would probably make a lot of people happy. http://linux.die.net/man/2/splice (I know that=92s not exactly what you=92re talking about, but while = we=92re on the subject)