From owner-freebsd-net@freebsd.org Mon Aug 8 14:01:24 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 C6B2CBB146F for ; Mon, 8 Aug 2016 14:01:24 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 5A19B1E6E for ; Mon, 8 Aug 2016 14:01:24 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id q128so121211094wma.1 for ; Mon, 08 Aug 2016 07:01:24 -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=6VrTaTBJrt9T+YE3O125/XjA2Iv+xSbXfcnTI8ToTjA=; b=qqzK97jxmgTc5obN1GnYGOY4MGoUjOvyT+/cBt7kHkT9jAsxpfyXJZItpDYbrNEDEt GyRnUcrLVdMDH4IxRKHdJRq4h33s0urvnHqHGRD4T0vzPuyKaVxhNtsYkNTrRDysmZ5N 21ToXg2Y4iOuCU5SWh4sg3yDnZ1Gcr8STDNzGE5AvZKffnHRJNb5rF5SNWTl95nFthet glIJfChBY9zOdhFH/aKHuojY9CYQfkExmA1htJLnLl67Y59hcZcaqnjuiZMX/KmTRVcg BqUJY+oYXOz/OMEVjinEFFSzw8UfGinYBAkJHjSqUJhTyes6J267B+MyjomvK3i3PVEk fBwQ== 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=6VrTaTBJrt9T+YE3O125/XjA2Iv+xSbXfcnTI8ToTjA=; b=TNq41ijGuQo1DKLTfrbLnamcveub4xoTj9l+6N1ud5EaqCfgQNBoZQ8P9btqog+scQ xpbI2T9nPdZ7ECDzmFIAi9ZD8aL/BR6J/hHb3v/T9RYgmbV6d13jqOZ2rmbpuiJJuIzI Cu8i814MZQXhl7d8RPFutBu9NNnRG+7IFjCwTdjsKe069Q6Zuo9ZdCQfTAXdmYaOBxiv lpOm8i6iWsPHZAwCYBkJgZMli/333y3Baedep+0LVcBXDoU3CC0hEFoFwmAQ8TdjDgLS dXygGXSYm1mUfFhqxzslYbG22VMCv8LL/0nHQ10+ej+6U4sdSXWQD7u0JZGMIOsdzgrH GePQ== X-Gm-Message-State: AEkoousWbisOdvUKOrl2OtmOKmyCqrsJySWVhT9cz74VRLye9fbEzbVdpSAUZLhSvWXhgQ== X-Received: by 10.28.129.145 with SMTP id c139mr17418650wmd.102.1470664882515; Mon, 08 Aug 2016 07:01:22 -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 m127sm23843855wmm.21.2016.08.08.07.01.21 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 07:01:21 -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: <5D6DF8EA-D9AA-4617-8561-2D7E22A738C3@gmail.com> Date: Mon, 8 Aug 2016 16:01:20 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3C0D892F-2BE8-4650-B9FC-93C8EE0443E1@gmail.com> <3B164B7B-CBFB-4518-B57D-A96EABB71647@gmail.com> <5D6DF8EA-D9AA-4617-8561-2D7E22A738C3@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: Mon, 08 Aug 2016 14:01:24 -0000 > On 04 Aug 2016, at 11:40, Ben RUBSON wrote: >=20 >=20 >> 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. >=20 > 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. >=20 > 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) OK, I then found a workaround. In the motherboards' BIOS, I disabled the following option : Advanced / ACPI Settings / NUMA And I'm now able to go up to 2x40Gb/s ! I'm then even able to achieve this throughput without any cpuset ! Strange that Linux was able to deal with this setting, but I'm pretty = sure production performance will be easier to maintain with only 1 NUMA. Feel free to ask me if you want further testing with 2 NUMA. Ben