From owner-freebsd-net@freebsd.org Thu Aug 4 09:40:14 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C361BAE28D for ; Thu, 4 Aug 2016 09:40:14 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 22B9B1157 for ; Thu, 4 Aug 2016 09:40:14 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id o80so370722516wme.1 for ; Thu, 04 Aug 2016 02:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=WRhF4iTDC1VxLB9ZrqVCa6l5JqB26hdUDttESrAHejU=; b=gweKI3JEP+OahUlozZ16PZuqrtAIlOPBD77Rlzfkn+mWn2JReue7KQ0B1Ig6tSJQfT a7ltdUTAWnVaeEhqXJIzBV46WWwkc6rjWKoxMxMRUhGY7QuuFQaSjq7BkKzCcF5cb4gX wtx2YdfDsh8IuyDOUweo/28Wj9F1RyHBvYxDj2nNxtq8RJvEPNpOL9yHS78MQHGdGtMs bMtSH02fldfJMXNyKEfZyRgDsmzcGiVmffZWKkrWQkB4FFtYmzwE22ol9ag9/ufnPOR2 LUEvfqrtSUSr2Ql8J3uGlL20IXCl9InL+o+0YLmg4mXnoSoMtz/s+nAvaz1r9UsXWI9j MKvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=WRhF4iTDC1VxLB9ZrqVCa6l5JqB26hdUDttESrAHejU=; b=bjNBIXpeHPWec6eku/TYA9nWPDSZaynbgYK/uon3PBXzTvhGmQRQKAKQ/t+Aggfucz /JwurJuSVFZvBfWWrBormzh3VFnfV4KfKpQ+IgdIWNdWsvBuiI+ud99Bk2dDPKD+owZH 44pxmnrpYqXqH2AHnO2m/5SMZjrCRC51QLMa4uwCsyJ7DWtzrRnSBwzuB2+9SOYkOq4y usgjrMf/DKbk7mOz8XeNupUYWPIShqXTTO6ezwp4cLSGSMJ9jJhqSgbrwmSj4KywEuXU uzdd1zGLnKonbOVun/r0hVjN5XP0waD/fmVcLsjsdTLydm9ffYZdEAofAEbAOl9sUJbs EtrA== X-Gm-Message-State: AEkoous0DYpjMW0HkFkI5tJFVJLFijEvRPFuURTzrMm2OasWMi/RyJ5/jVGzrTSK7XUzqA== X-Received: by 10.194.135.205 with SMTP id pu13mr74007856wjb.37.1470303612276; Thu, 04 Aug 2016 02:40:12 -0700 (PDT) Received: from macbook-air-de-benjamin-1.home (LFbn-1-7077-85.w90-116.abo.wanadoo.fr. [90.116.246.85]) by smtp.gmail.com with ESMTPSA id qe2sm11930816wjc.28.2016.08.04.02.40.11 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 02:40:11 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Unstable local network throughput From: Ben RUBSON In-Reply-To: <3B164B7B-CBFB-4518-B57D-A96EABB71647@gmail.com> Date: Thu, 4 Aug 2016 11:40:10 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <5D6DF8EA-D9AA-4617-8561-2D7E22A738C3@gmail.com> References: <3C0D892F-2BE8-4650-B9FC-93C8EE0443E1@gmail.com> <3B164B7B-CBFB-4518-B57D-A96EABB71647@gmail.com> To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 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, 04 Aug 2016 09:40:14 -0000 > On 02 Aug 2016, at 22:11, Ben RUBSON wrote: >=20 >> On 02 Aug 2016, at 21:35, Hans Petter Selasky = wrote: >>=20 >> The CX-3 driver doesn't bind the worker threads to specific CPU cores = by default, so if your CPU has more than one so-called numa, you'll end = up that the bottle-neck is the high-speed link between the CPU cores and = not the card. A quick and dirty workaround is to "cpuset" iperf and the = interrupt and taskqueue threads to specific CPU cores. >=20 > My CPUs : 2x E5-2620v3 with DDR4@1866. OK, so I cpuset all Mellanox interrupts to one NUMA, as well as the = iPerf processes, and I'm able to reach max bandwidth. Choosing the wrong NUMA (or both, or one for interrupts, the other one = for iPerf, etc...) totally kills throughput. However, full-duplex throughput is still limited, I can't manage to = reach 2x40Gb/s, throttle is at about 45Gb/s. I tried many different cpuset layouts, but I never went above 45Gb/s. (Linux allowed me to reach 2x40Gb/s so hardware is not a bottleneck) >> Are you using "options RSS" and "options PCBGROUP" in your kernel = config? I will then give RSS a try. Any other clue perhaps regarding the full-duplex limitation ? Many thanks ! Ben