From owner-freebsd-net@freebsd.org Thu Aug 11 22:52:28 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 0FC9FBB7C8F for ; Thu, 11 Aug 2016 22:52:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (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 D10FC1652 for ; Thu, 11 Aug 2016 22:52:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x231.google.com with SMTP id x130so8817593ite.1 for ; Thu, 11 Aug 2016 15:52:27 -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; bh=ev9kFVBrRfvCVblTPqC50g8zPv+KAIilkb53V2YJU3s=; b=zSm2aYXBwZxJvFl67JmPJDvCMAVeJEL/5WjzZQtPNNFB6JBfEc5unQZJMJlDG/zjgg A/+SElLFHQhSvQzcOPciGG/i9FKw7OusL3+jt8zLjFf6Vz9t1PvLLkgAQncMYjss3/41 rfyUBFVmGtl8qPTSSnSCwOC9FtPJAJV0qc8ziZ++/EUBH+i7gzY29/gTBXmn2hAFZv6H 9mbrsbJ0wxA2I30JOooKHq7kA9kKNUOhd8Te0F0Ouw9IATOfSAu9tPmcwYCvWFGVnyEV sVJWOh6TK2tfYelNhVirRwNcQdhGx6JCjP8U3N8bHaLrIo/9XvLtbEKlzvDdTTJZrje0 qPSw== 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; bh=ev9kFVBrRfvCVblTPqC50g8zPv+KAIilkb53V2YJU3s=; b=YBMJmr2ge4BvfOaOEZx6o5XhQSpGNACqJro6vbEWKpTTpzhROI2e5/pe9jfOKa29CB KWoBc2VzKbkJsr8oif+cSlxptfXieZU+Is6vThFWo4z0uLj+EkcE0tkHWSqOlbcQRUi1 4+oR8jX4QBCNwhIqTiJAZby7an1r2bU0oku9idUi6tLPsyzi+Xgym5oZdfLLYJ8zquHN F7MHNpbTs3atIjFMkrVFyAAb4sOGAtabgYtt/nYMJHASWEhZgnpZzXpD5P+0pXqy2obi gvPGF9pJAcdhMUBPma8wAN6G1ZWRu3GsDMl0Qg0vW+mXATRLyJi6li/dvZWRsq4hSS5g GOxA== X-Gm-Message-State: AEkoousTqDmxxxjYbC6bIyIXTwXfxNaA7SeQvfChM7Td5Gl39F3Ih4dmCign7B/vs0+zNYyh9DCBHQXrzyZdPg== X-Received: by 10.36.242.68 with SMTP id j65mr12354721ith.25.1470955946414; Thu, 11 Aug 2016 15:52:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Thu, 11 Aug 2016 15:52:25 -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> <7DD30CE7-32E6-4D26-91D4-C1D4F2319655@gmail.com> From: Adrian Chadd Date: Thu, 11 Aug 2016 15:52:25 -0700 Message-ID: Subject: Re: Unstable local network throughput To: Ben RUBSON Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 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 22:52:28 -0000 Which ones of these hit the line rate comfortably? -a On 11 August 2016 at 15:35, Ben RUBSON wrote: > >> On 11 Aug 2016, at 18:36, Adrian Chadd wrote: >> >> Hi! >> >> 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) >> >> so the NIC is in numa-domain 1. Try pinning the worker threads to >> numa-domain 1 when you run the test: >> >> numactl -l first-touch-rr -m 1 -c 1 ./test-program >> >> You can also try pinning the NIC threads to numa-domain 1 versus 0 (so >> the second set of CPUs, not the first set.) >> >> vmstat -ia | grep mlx (get the list of interrupt thread ids) >> then for each: >> >> cpuset -d 1 -x >> >> Run pcm-memory.x each time so we can see the before and after effects >> on local versus remote memory access. >> >> Thanks! > > Adrian, here are the results : > > > > Idle system : > http://pastebin.com/raw/K1iMVHVF > > > > No pinning : > http://pastebin.com/raw/w5KuexQ3 > CPU : http://pastebin.com/raw/8zgRaazN > > numactl -l fixed-domain-rr -m 1 -c 1 : > http://pastebin.com/raw/VWweYF9H > CPU : http://pastebin.com/raw/QjaVH32X > > numactl -l fixed-domain-rr -m 0 -c 0 : > http://pastebin.com/raw/71hfGJdw > CPU : http://pastebin.com/raw/hef058Na > > numactl -l fixed-domain-rr -m 1 -c 1 > + cpuset -l -x : > http://pastebin.com/raw/nEQkgMK2 > CPU : http://pastebin.com/raw/R652KAdJ > > numactl -l fixed-domain-rr -m 0 -c 0 > + cpuset -l -x : > http://pastebin.com/raw/GdYJHyae > CPU : http://pastebin.com/raw/Ggfx9uF9 > > > > No pinning, default kernel (no NUMA option) : > http://pastebin.com/raw/iQ2u8d8k > CPU : http://pastebin.com/raw/Xr77KpcM > > default kernel (no NUMA option) > + cpuset -l > + cpuset -l -x : > http://pastebin.com/raw/VBWg4SZs > > default kernel (no NUMA option) > + cpuset -l > + cpuset -l -x : > http://pastebin.com/raw/SrJLZxuT > > > > No pinning, default kernel (no NUMA option), NUMA BIOS disabled : > http://pastebin.com/raw/P5LrUASN > > > > I would say : > - FreeBSD <= 10.3 : disable NUMA in BIOS > - FreeBSD >= 11 : disable NUMA in BIOS or enable NUMA in kernel. > But let's wait your analysis :) > > > > 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"