Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752831AbYKMLYV (ORCPT ); Thu, 13 Nov 2008 06:24:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751795AbYKMLYN (ORCPT ); Thu, 13 Nov 2008 06:24:13 -0500 Received: from mx2.redhat.com ([66.187.237.31]:37223 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751712AbYKMLYM (ORCPT ); Thu, 13 Nov 2008 06:24:12 -0500 Date: Thu, 13 Nov 2008 09:24:09 -0200 From: Arnaldo Carvalho de Melo To: Olaf van der Spek Cc: Linux Kernel Mailing List Subject: Re: Unix sockets via TCP on localhost: is TCP slower? Message-ID: <20081113112409.GK13263@ghostprotocols.net> Mail-Followup-To: Arnaldo Carvalho de Melo , Olaf van der Spek , Linux Kernel Mailing List References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://oops.ghostprotocols.net:81/blog User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 864 Lines: 21 Em Thu, Nov 13, 2008 at 12:20:44AM +0100, Olaf van der Spek escreveu: > Hi, > > Quite often in discussions, I see people claiming Unix sockets are > faster then TCP sockets on a connection that stays inside localhost. > Let's say from app A to app B. > Is this indeed the case and if so, how much and why? > My assumption is that the kernel can optimize the 'connection' and let > any performance differences disappear. How much? Please measure. Faster? Not necessarily, Nagle comes to mind, among others. What kind of traffic? That matters too. Start here: http://en.wikipedia.org/wiki/Nagle's_algorithm - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/