From owner-freebsd-stable@FreeBSD.ORG Mon Sep 19 05:18:05 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 6BBF216A41F for ; Mon, 19 Sep 2005 05:18:05 +0000 (GMT) (envelope-from bambi@Hughes.com.au) Received: from elk.hughes.com.au (elk.hughes.com.au [69.55.238.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EEE743D53 for ; Mon, 19 Sep 2005 05:18:02 +0000 (GMT) (envelope-from bambi@Hughes.com.au) Received: from [192.168.21.147] (nat72.gw1.wic.server-noc.com [203.147.141.72]) by elk.hughes.com.au (8.12.9/8.12.3) with ESMTP id j8J5I0Zv057891; Sun, 18 Sep 2005 22:18:00 -0700 (PDT) (envelope-from bambi@Hughes.com.au) In-Reply-To: <4327CA3C.6050403@geminix.org> References: <432753CF.6020001@bfoz.net> <4327CA3C.6050403@geminix.org> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "David J. Hughes" Date: Mon, 19 Sep 2005 15:17:57 +1000 To: Uwe Doering X-Mailer: Apple Mail (2.622) X-Scanned-By: MIMEDefang 2.36 Cc: Brandon Fosdick , 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: Mon, 19 Sep 2005 05:18:05 -0000 On 14/09/2005, at 4:59 PM, Uwe Doering wrote: > So in case of MySQL you would have to use TCP sockets to communicate > between jails. This socket type typically consumes more CPU because > of TCP's protocol overhead. However, whether you would actually > notice any difference in speed basically depends on how much excess > CPU power there is available on that server. The result of running these sort of connections over TCP rather than a UNIX domain connection are far more dramatic than this would indicate. When I wrote mSQL and added UNIX domain sockets as a connection option I was able to produce a 10 fold increase in query processing rates for basic queries. If there's a high and constant rate of queries then doing it over a TCP connection is not going to win you any friends. David ...