From owner-freebsd-net@freebsd.org Thu Aug 4 15:24:23 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 1283CBAF02C for ; Thu, 4 Aug 2016 15:24:23 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (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 9A11D1533 for ; Thu, 4 Aug 2016 15:24:22 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id o80so382933530wme.1 for ; Thu, 04 Aug 2016 08:24:22 -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=OpDoBMORj5YXGM8FkrfH6PgwpXtmLLAAIHB7R1/BlxM=; b=ksCFdk1VEyc1jRmd0EtO1hZ7gy2iwriY2TnzW0cRVT+2gtitFgG6q013Sq9j+kFuJx hX2HDXenzAwL4fxAYl8E5Vf8z1zW+mNWKs72IdEP5Qof6eB2cZaOW8VXGya6Dytxgjdb EH8GFX1C+E9xln4QzJrdXiuIJgmKk2zfHVH1sMKVF38XpWEZhDN68llbbl/1aAMY35KY i2LIMnvANXvWcfrsTB+lu21wk/WRJug++24oN3sIry75sCZyEXkN0VMUsw6FKc42AH4U wCuh8s4vLOl6lgPA/JH+3CXROHtXsj15q6rTz2F7LtdXaczfIkAVh++AZU9TF5ZVzFrK 1ffg== 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=OpDoBMORj5YXGM8FkrfH6PgwpXtmLLAAIHB7R1/BlxM=; b=LCSEoorMLAE7Ii4d1MWS9KJ+L2sLYjGkvOXJL0s6LNj0d2BUbQg3fbTclprbGZ9A6G 8lcHD4/V3ZgbXy79R4PvF17Bi8Q7nWJbtqQDLCp4jF4Ucbh/+DKRoQfqWPQhkuEjCqHC DrVUYrZ7kURAFwXC7NPpc/Kywr9hSALgNpmC8Un15Pi6qJTWMPGSyjSoXJN2coPrZRvz bBHmz/sAwXLYwDi0C4fiuCGV2KhF6b2wTMhdEPZMMf7AV/bfKzLj2KBeZKIH1QH2FbXS S3uXRv4ytyS0e1hBhxJRvh9WluKUZCozVycY3ZWcIzAjplgEL73dV/rbkXh9aUW6EcHA JDzw== X-Gm-Message-State: AEkoouvgY2Pxn904tLah+YsibXtPxnVOJGgXxjSGJ1lpoDWKmr4LkYd1vfz2z9PLVopmhQ== X-Received: by 10.28.24.5 with SMTP id 5mr30908416wmy.6.1470324259307; Thu, 04 Aug 2016 08:24:19 -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 p23sm4160634wme.8.2016.08.04.08.24.18 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 08:24:18 -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: Thu, 4 Aug 2016 17:24:17 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <06E414D5-9CDA-46D1-A26F-0B07E76FDB34@gmail.com> 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: Thu, 04 Aug 2016 15:24:23 -0000 > On 04 Aug 2016, at 11:40, Ben RUBSON wrote: >=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) >=20 >>> Are you using "options RSS" and "options PCBGROUP" in your kernel = config? >=20 > I will then give RSS a try. Without RSS : A ---> B : 40Gbps (unidirectional) A <--> B : 45Gbps (bidirectional) With RSS : A ---> B : 28Gbps (unidirectional) A <--> B : 28Gbps (bidirectional) Sounds like RSS does not help :/ Why, without RSS, do I have difficulties to reach 2x40Gbps (full-duplex) = ? Thank U !=