From owner-freebsd-net@freebsd.org Tue Aug 2 20:11:58 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 03E01BAD7DC for ; Tue, 2 Aug 2016 20:11:58 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 8C5E419B4 for ; Tue, 2 Aug 2016 20:11:57 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id o80so306366546wme.1 for ; Tue, 02 Aug 2016 13:11:57 -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=88JR0gGY/5mVgwoiQukv7AUiFfBfDqqSb9Ew/NXq0RQ=; b=PKohHy/BOFmIL1gnSY5p/1EjxVvJV3RSrVOJiydXrHSXu2iynf2/2gaoMPm9U9h7AH NVSrBYBfeNCMhjh96SGgp6i3RqZiaOWyZWMYGnUyDocZO2QKTrW+u8NIznp70Gr86xEv PQL211e3U+++25io5h/1Tf+paGUGFem+52vqlDzkZ8J4/TPfYG0/3aJusCWbjAHmGUP3 lJxO3K1wOi9b7jETxlG5M1c9CK16/xJhi02EuU/EOFAX7XtTc18Z/NLKFvNbV8TjGv4f rzFbvY1iQx3VHSCNTkksQ2IDgzMYEZq22cq5koz++dmsYMz1dxgZ3V64+k/YXOzVMIO5 dCag== 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=88JR0gGY/5mVgwoiQukv7AUiFfBfDqqSb9Ew/NXq0RQ=; b=ExEPhNMjyJuWWfByMNqMZU7FO+KwcOzIR59Aip4+T1d88CdVyrWmgSPZudLxf4awkC vgDI3VO6sza6o7vhx9RLefPAz+M4w6E4wig4DlkkpcmBSMdGiDIwjs+Iv9tSoLbHIvRd kQJks0LskF3oCM7021qcLQuZZ9f/S49GmWNiZmmMn0mUZu0NxeJx+JsUrT5biTcALhae JVv9nTNKd06VGvS4vVBUSsv2BDvlU7fiqgoCWvH7yiqGIcXXvjDQxY1y9c8AG4ZHm7A7 V9mXtKJyt+hRgu8h67hwfdiSQOKh5xwE6LdUfJjvnsIkIepg8zrdG3T1xvAce2jwBn39 y8EA== X-Gm-Message-State: AEkoouvPMB5Pmt7t7eRl0Ny1PDqkBqJj66ozBNXT458q/Dih/svBE9WtIAawUekIzZH90w== X-Received: by 10.28.208.140 with SMTP id h134mr67275716wmg.101.1470168714991; Tue, 02 Aug 2016 13:11:54 -0700 (PDT) Received: from macbook-air-de-benjamin.home (LFbn-1-7077-85.w90-116.abo.wanadoo.fr. [90.116.246.85]) by smtp.gmail.com with ESMTPSA id i1sm4181944wjl.9.2016.08.02.13.11.54 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Aug 2016 13:11:54 -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: Date: Tue, 2 Aug 2016 22:11:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <3B164B7B-CBFB-4518-B57D-A96EABB71647@gmail.com> References: <3C0D892F-2BE8-4650-B9FC-93C8EE0443E1@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: Tue, 02 Aug 2016 20:11:58 -0000 > On 02 Aug 2016, at 21:35, Hans Petter Selasky wrote: >=20 > Hi, Thank you for your answer Hans Petter ! > 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. My CPUs : 2x E5-2620v3 with DDR4@1866. What is strange is that even without using the card (iPerf on = localhost), as my results show, I have very low and unstable random = throughput (compared to Linux on the same host). > Are you using "options RSS" and "options PCBGROUP" in your kernel = config? I only installed FreeBSD 10.3 and updated it, so I use the GENERIC = kernel. RSS and PCBGROUP are not defined in /usr/src/sys/amd64/conf/GENERIC, so = I think I do not use them. > Are you also testing CX-4 cards from Mellanox? No, I only have CX-3 at my disposal :) Ben PS : in my previous mail I sometimes used GB/s, of course you must read = Gb/s everywhere.=