From owner-freebsd-net@FreeBSD.ORG Thu Jan 16 19:06:49 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1B62A77E; Thu, 16 Jan 2014 19:06:49 +0000 (UTC) Received: from mail-qa0-x22f.google.com (mail-qa0-x22f.google.com [IPv6:2607:f8b0:400d:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BA7B61E3A; Thu, 16 Jan 2014 19:06:48 +0000 (UTC) Received: by mail-qa0-f47.google.com with SMTP id j5so2495585qaq.34 for ; Thu, 16 Jan 2014 11:06:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=KKGatsn2qNXE54p+tgvmNEX0iut2nEaG927HOCVgVag=; b=uXoCU8bh2sbwzdv6V7by07ziNI9FpuP0125Ivjk3VbriJ3FIuaItNBEfAwfYw2aTBe SmJY1ulUzpD+2qktfPNBlk7T71wCkLQxG9RzJ9GDXioaoZO5aJFSJQGPAjYAfZPBRFxp 6qCm5Scdor9/NtQ1Fb/77F0eD5bANAI/TPuswgUwsPpYs8UIqvD7GfmdotcvmVBr/bQo cdD0biVJtwc7vWdRKk2ZtSHit7Q08r59ZtzZyxuoam6EOUQZLJldv0+b2leMYy/gdkmv 1wwAzr7hl03UqyWcMbyuYRBSsrLFYcFVEPGTnNtl6pZlTGuIQddXz11dxJKXFUmlRYFQ rWtg== MIME-Version: 1.0 X-Received: by 10.224.127.131 with SMTP id g3mr18678588qas.98.1389899207979; Thu, 16 Jan 2014 11:06:47 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Thu, 16 Jan 2014 11:06:47 -0800 (PST) In-Reply-To: References: <52D5138B.8050100@fsn.hu> <52D6525D.50102@FreeBSD.org> Date: Thu, 16 Jan 2014 11:06:47 -0800 X-Google-Sender-Auth: YZdX6-S288idk-sV-Rx0DRop9I4 Message-ID: Subject: Re: ECMP hash keys? From: Adrian Chadd To: Nikolay Denev Content-Type: text/plain; charset=ISO-8859-1 Cc: "Alexander V. Chernikov" , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 19:06:49 -0000 On 16 January 2014 08:02, Nikolay Denev wrote: > Hi Adrian, > > Probably a stupid question, but I'm trying to understand more about this, > so basically the benefit of using essentially an additive hash function would be > that both directions of the same flow/connection would end up for > processing on the same core? Yes. For TCP workloads where you have a lot of shared state being changed in the transmit and receive direction, there's a _lot_ of lock contention going on all over the place. -a