From owner-freebsd-net@freebsd.org Wed Aug 10 19:47: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 9110BBB5CF6 for ; Wed, 10 Aug 2016 19:47:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x229.google.com (mail-it0-x229.google.com [IPv6:2607:f8b0:4001:c0b::229]) (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 59E9D1DA7 for ; Wed, 10 Aug 2016 19:47:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x229.google.com with SMTP id u186so47354860ita.0 for ; Wed, 10 Aug 2016 12:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=wjmvr5ZFY7vog6/tMjZdkUQnxddwZPTUsniQbMnU0N8=; b=fMIIsNA99ANkeasmjhTbKuiZhJDrhM+zySLpEnWKmJARVZdOzc7Rhcyt3zNcm3is3h NRXU8PCGjkrzRtYirRgNDuH2+brXP/u/KKooX9SaZaWd6/fduGdi8AEqUqTdsYDDvk3U S3YqRE4shPo7nTiUU+inaMjjW42AR91OeWIM3wQe0XUxsddtenhvmoG9VsEP7FoOpGQA a9NcwDRAvr3g0pkONSnK1DXHrhsZ2Y+VPfB1leuPgOhmXgyZZ7xqlzy+9cIUTG8z+UHo WvZGWHFXGDBPYF3aZZht//lohdmt88dml5HIyZKC4ac6YFJXC60cuU2RopYEh6T64auy UVuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=wjmvr5ZFY7vog6/tMjZdkUQnxddwZPTUsniQbMnU0N8=; b=bU+2hqpJHtxEOECyOTG1UxmyFKUHeQp1QiwN7zN5IAr2O3xQe4KP3AUJmoS6Z4d1U5 FP8A2wq767RX1cR+vmArFM0jBSd/bno5Zw/btUp4ukl6v8pRcPqrAGA8/fpCAHoCyL+N 2K0uhI3d0XbJOHurY6pXK11B98B8l5GVNmydDUrndFacRzu7RVOIKLSryzaXKSnk99WF VS1O4gwUair2XrNgddIwzh2AJ9aYcdVJUXc2ouz/bx0NuJUaCQ/J+YOhWjqwKLcI8QEm Bmq8s2cblg/tOfYyxG/PFsCO14MHKeERs3LlSYSvAVgpC8j/Xy5vpOxAsAIvBBFADu0F SgBQ== X-Gm-Message-State: AEkoouujC4DQfWpHfrud+cgbIA+mRFoLfkfwtgnCDsJaRrVkUjnaJDzq4n6jCpkU+A7H6UeJty9lkwPOJrYykw== X-Received: by 10.36.242.68 with SMTP id j65mr5248816ith.25.1470858442665; Wed, 10 Aug 2016 12:47:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Wed, 10 Aug 2016 12:47:21 -0700 (PDT) In-Reply-To: References: <3C0D892F-2BE8-4650-B9FC-93C8EE0443E1@gmail.com> <3B164B7B-CBFB-4518-B57D-A96EABB71647@gmail.com> <5D6DF8EA-D9AA-4617-8561-2D7E22A738C3@gmail.com> From: Adrian Chadd Date: Wed, 10 Aug 2016 12:47:21 -0700 Message-ID: Subject: Re: Unstable local network throughput To: Ben RUBSON Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Wed, 10 Aug 2016 19:47:23 -0000 hi, yeah, I'd like you to do some further testing with NUMA. Are you able to run freebsd-11 or -HEAD on these boxes? -adrian On 8 August 2016 at 07:01, Ben RUBSON wrote: > >> On 04 Aug 2016, at 11:40, Ben RUBSON wrote: >> >> >>> On 02 Aug 2016, at 22:11, Ben RUBSON wrote: >>> >>>> On 02 Aug 2016, at 21:35, Hans Petter Selasky wrote: >>>> >>>> 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 t= he card. A quick and dirty workaround is to "cpuset" iperf and the interrup= t and taskqueue threads to specific CPU cores. >>> >>> My CPUs : 2x E5-2620v3 with DDR4@1866. >> >> OK, so I cpuset all Mellanox interrupts to one NUMA, as well as the iPer= f processes, and I'm able to reach max bandwidth. >> Choosing the wrong NUMA (or both, or one for interrupts, the other one f= or iPerf, etc...) totally kills throughput. >> >> However, full-duplex throughput is still limited, I can't manage to reac= h 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 sur= e 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 > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"