From owner-freebsd-net@freebsd.org Thu Aug 11 17:51:55 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 64F45BB57A6 for ; Thu, 11 Aug 2016 17:51:55 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 E95D21A64 for ; Thu, 11 Aug 2016 17:51:54 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id i5so6554997wmg.0 for ; Thu, 11 Aug 2016 10:51:54 -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=CsCQOVjToDqTjaE4DZoNJNprP64CxU3NpH8kvSqC6hU=; b=Qy9MgSvMW6SjNPdsjg1ciN7CcIKrRGcro14r+f5lG67xL8ZnD7yTJetx/G9yAu/FCA f+d8zubo4BsA+ZyhwLOYUlBhU13B4dFdkVGfgU2kyVqSISpSkNPNbmofmCfgFbmddvcB P4ChVjvheHCad0Q3vj+vQPqmEbV1uQI7fSc9kXARKdMtpkLSfmV2CCJrrnfyHI1yMYEj vUMLdJgUCbUaZZWrTzBHVnbsPCwe2dl9H6EWhQw80TDcJB2wN/Iwf80d0mnqC+HsJbN2 ymISoKXNFodivwWUxEY1X2QRoy5W7SBE55ojD5ZDshMjhEo7iP3s3wRJONlGygBlihlc PRIA== 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=CsCQOVjToDqTjaE4DZoNJNprP64CxU3NpH8kvSqC6hU=; b=IWx1uRGULXzuZqJyyn9BeWLwrjNHM1Tw9NjWNCW51+6IQuF0Y3NcJrr6WX5d2+JDv2 ArhIP8dyt6ypaM3GXzbdqRmUScaWofBKrMLwLfaxjGXxH9NZK+IzUr7LTks7/58IFb9w lLSywPS9RiKN8eWqU26crkxWDUxNlLTeV4jQD66ZFeZc0uZWEs6gz8rt+SqLs5y9LF25 b8ZIsewYuNpPrsDWHeDmv22YamQMMifAXyEvcQJgg+5/QpcBvnPp+83PKQUjLkkW9fnm dptZl1eY0zjFQLhg+cuKFLVvEa8eEYTsr25Pv4TMJ/MlFRwneJYOF/b4qB8GrLCIeugC 1c+Q== X-Gm-Message-State: AEkooutftoxBgKQf4yIdSfDJfnI2mbYd+F8w5+U0D80+x00d5QzzHk+4AKzfINigQXhV1A== X-Received: by 10.28.168.150 with SMTP id r144mr11131490wme.66.1470937913265; Thu, 11 Aug 2016 10:51:53 -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 g7sm3756037wjx.10.2016.08.11.10.51.52 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Aug 2016 10:51:52 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Unstable local network throughput From: Ben RUBSON In-Reply-To: Date: Thu, 11 Aug 2016 19:51:51 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <246672E7-78D9-4421-9214-DE66C32D47FA@gmail.com> References: <3C0D892F-2BE8-4650-B9FC-93C8EE0443E1@gmail.com> <3B164B7B-CBFB-4518-B57D-A96EABB71647@gmail.com> <5D6DF8EA-D9AA-4617-8561-2D7E22A738C3@gmail.com> <7DD30CE7-32E6-4D26-91D4-C1D4F2319655@gmail.com> To: FreeBSD Net 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, 11 Aug 2016 17:51:55 -0000 > On 11 Aug 2016, at 18:36, Adrian Chadd wrote: >=20 > Hi! Hi Adrian, > mlx4_core0: mem > 0xfbe00000-0xfbefffff,0xfb000000-0xfb7fffff irq 64 at device 0.0 > numa-domain 1 on pci16 > mlx4_core: Initializing mlx4_core: Mellanox ConnectX VPI driver v2.1.6 > (Aug 11 2016) >=20 > so the NIC is in numa-domain 1. Try pinning the worker threads to > numa-domain 1 when you run the test: >=20 > numactl -l first-touch-rr -m 1 -c 1 ./test-program # numactl -l first-touch-rr -m 1 -c 1 /usr/local/bin/iperf -c = 192.168.2.1 -l 128KB -P 16 -i 2 -t 6000 =20 Could not parse policy: '128KB' I did not manage to give arguments to command. Any idea ? # numactl -l first-touch-rr -m 1 -c 1 /usr/local/bin/iperf = =20 numactl: numa_setaffinity: Invalid argument And sounds like -m is not allowed with first-touch-rr. What should I use ? Thank you ! > You can also try pinning the NIC threads to numa-domain 1 versus 0 (so > the second set of CPUs, not the first set.) >=20 > vmstat -ia | grep mlx (get the list of interrupt thread ids) > then for each: >=20 > cpuset -d 1 -x >=20 > Run pcm-memory.x each time so we can see the before and after effects > on local versus remote memory access. >=20 > Thanks! >=20 >=20 >=20 > -adrian