From owner-freebsd-arch@FreeBSD.ORG Tue Jul 15 14:33:58 2014 Return-Path: Delivered-To: freebsd-arch@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 59EFC51D for ; Tue, 15 Jul 2014 14:33:58 +0000 (UTC) Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (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 17CDB2C6C for ; Tue, 15 Jul 2014 14:33:58 +0000 (UTC) Received: by mail-qg0-f41.google.com with SMTP id q107so2735442qgd.0 for ; Tue, 15 Jul 2014 07:33:57 -0700 (PDT) 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=xChN/oTycv8YUAXPTwvPkTnW/nv39w0okzpstJW67Y4=; b=lkGzLT01XvNSN/AarNaAIkRrQVD8cn6g+mfDViZiYH6kJYgsUIeQWvARmZCOof2jf8 7AmqzjqNufJhUkWBhV3/CP5w6ZSlNuYCTnzUqqjFVvFtYm0+2RHh7XDxp3wtxjdNvWT1 NM0Zmq5qaIq6fhfJSSKMhIIpX2IP2MMlnfj0wwmEpZucDb3Qzm5IM2RYLp2yVNVhjHOx YDQRa5/9gFhuEJ44fm10R5G2WsRZt3SlLrmlsQFjaS2BTYAZzQ12QJgMU3ME4D7G6+K7 vSxwQV2+EvtXw6daKQPakDP91wVY2Wkj5ZvTqw2pTszqXOvahmxLwRaVNbgF4OqSFKqQ RbMA== MIME-Version: 1.0 X-Received: by 10.224.156.145 with SMTP id x17mr7292834qaw.49.1405434837249; Tue, 15 Jul 2014 07:33:57 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Tue, 15 Jul 2014 07:33:57 -0700 (PDT) In-Reply-To: <20140715113319.GA96254@zxy.spb.ru> References: <53C4EE00.5090705@gmail.com> <20140715093125.GA89128@zxy.spb.ru> <53C507F2.2090604@gmail.com> <20140715113319.GA96254@zxy.spb.ru> Date: Tue, 15 Jul 2014 07:33:57 -0700 X-Google-Sender-Auth: 0NY0qCPHCbjQa1o89rUe2SLgLY4 Message-ID: Subject: Re: UDP/TCP versus IP frames - subtle out of order packets with hardware hashing From: Adrian Chadd To: Slawa Olhovchenkov Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2014 14:33:58 -0000 On 15 July 2014 04:33, Slawa Olhovchenkov wrote: > On Tue, Jul 15, 2014 at 03:22:34PM +0430, Hooman Fazaeli wrote: > >> On 7/15/2014 2:01 PM, Slawa Olhovchenkov wrote: >> > On Tue, Jul 15, 2014 at 01:31:52PM +0430, Hooman Fazaeli wrote: >> > >> >> Doesn't the problem applies to TCP too? >> >> TCP may be fragmented too but is less likely because of MSS. >> > Don't forget GRE, IPIP, ESP and AH! >> > >> These protocols don't use port numbers and the RSS hash is computed based on the >> (srcip,dstip) tuple, so the problem does not apply to them. > > And all flows go to one queue? Bad. All the packets between two IP addresses for non-TCP, non-UDP get hashed to the same CPU core, yes. If you have 1000 IP tunnels to different end-hosts, they'll be on different CPUs. -a