From owner-freebsd-stable@FreeBSD.ORG Tue Sep 27 00:39:32 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C7E816A41F for ; Tue, 27 Sep 2005 00:39:32 +0000 (GMT) (envelope-from craig@feniz.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC8B643D49 for ; Tue, 27 Sep 2005 00:39:31 +0000 (GMT) (envelope-from craig@feniz.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 8D4742BDE4; Mon, 26 Sep 2005 19:39:31 -0500 (CDT) Date: Mon, 26 Sep 2005 19:39:28 -0500 From: Craig Boston To: Brandon Fosdick Message-ID: <20050927003928.GA4800@nowhere> Mail-Followup-To: Craig Boston , Brandon Fosdick , freebsd-stable@freebsd.org References: <432753CF.6020001@bfoz.net> <433846BF.2090308@terrandev.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <433846BF.2090308@terrandev.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: Jail to jail network performance? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 00:39:32 -0000 On Mon, Sep 26, 2005 at 12:06:39PM -0700, Brandon Fosdick wrote: > Ideally I would like a daemon like socat that can connect/merge two > sockets into one, effectively creating a direct connection and > eliminating a copy. But AFAICT that isn't possible with the current > interface. It depends how dirty you want your hands to get. Such a thing can be achieved. Not so much the merging, but it is possible to pass a file descriptor over a UNIX domain socket, so in theory a small daemon which was able to access both file systems should be able to do a handoff. It would likely mean modifying the MySQL client library, however. See the sendmsg(2) and recvmsg(2) functions, specifically the SOL_SOCKET flag in the recvmsg man page. Craig