From owner-freebsd-net@freebsd.org Thu Aug 11 17:55:03 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 03CB0BB5A33 for ; Thu, 11 Aug 2016 17:55:03 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (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 9B64D1EBD for ; Thu, 11 Aug 2016 17:55:02 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id o80so6567069wme.1 for ; Thu, 11 Aug 2016 10:55:02 -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=AX+pXlpVyauoeo5PwDZVLkj0onXY4ym8CDX8l3EiU/s=; b=xpnrIoqZVONrowynsY1/mBJedcCPf6Bc3tgL3PPITJUl7T7VnwOInv6JTZ0IPo7U1F fKATiWRILxzuImCx3Lu7Cvx4hlYr+EgEDrEdg+1pT4YJvDI9bZ9aplIkwhizVzEzn5v4 DsttU2AUGIsp8mHMpO5BBUR6keOTOZikH9JA9IyIJjvto5+1Ow6tB2DRsOm5/bPi7Wvh yyD7vHHyt6sAd6M+tLu7y6kr1DpMX5Q1Vf6DsL7Nr0H6x1mQx6+WMBOxZ2Vk8wm7stUn pxa73c0ugmzh6kmylO5SzDmwh7qZqs2XZIPFX1z8+HtrEJhQdiJfvGko4lIl6CgYxDmf XLEg== 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=AX+pXlpVyauoeo5PwDZVLkj0onXY4ym8CDX8l3EiU/s=; b=X+UW2B+4vaODRrQ4aythWevTdmjAPLnXadtD2t7QsqjdIj/RAGc3BD2U5xZwBri0m0 ZXCjJe5mcUPN4d1o5gBDhvF6wwHyAgjkm+yfNJvLWxDCJCsuutew1ScG0ambSZZceQuv 7QTLYh3ladW1N3wPRIFMAMNR7zu7m37xQDrolT9UY281EaJEo6b4h3brhmmyNx3nYZb3 ZkuIqsEIlyWHOtTZlphznChzbR0rQ42deeB+PGWSu8e+n4OwR9ILYtmR5+zUAvwvz+nd lFWGqN9JQYefpAt6/JTBQEwJ+dGrDrCVnI6GYG8MsL9CqFdzTHLUgjuIfX8woKm6vQ2R it0w== X-Gm-Message-State: AEkooutE6JAPPE503jsk77e8rB2BiJrvknnvlpPpMW9DwAGbAHJUdYAMawvnLwPpVDgZJQ== X-Received: by 10.28.175.16 with SMTP id y16mr10037603wme.64.1470938100733; Thu, 11 Aug 2016 10:55:00 -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 jd4sm3774414wjb.6.2016.08.11.10.55.00 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Aug 2016 10:55:00 -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: <246672E7-78D9-4421-9214-DE66C32D47FA@gmail.com> Date: Thu, 11 Aug 2016 19:54:59 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <0B3D077E-120B-471C-B2B5-1ABCD85E572E@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> <246672E7-78D9-4421-9214-DE66C32D47FA@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:55:03 -0000 > On 11 Aug 2016, at 19:51, Ben RUBSON wrote: >=20 >=20 >> On 11 Aug 2016, at 18:36, Adrian Chadd = wrote: >>=20 >> Hi! >=20 > Hi Adrian, >=20 >> 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 >=20 > # 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' >=20 > I did not manage to give arguments to command. Any idea ? I answer to myself, this should do the trick : 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 However of course it still gives the error below : > # numactl -l first-touch-rr -m 1 -c 1 /usr/local/bin/iperf = =20 > numactl: numa_setaffinity: Invalid argument >=20 > And sounds like -m is not allowed with first-touch-rr. > What should I use ? >=20 > Thank you ! >=20 >> 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 >=20