From owner-freebsd-net@freebsd.org Wed Aug 17 15:43:59 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 CC957BBC9DF for ; Wed, 17 Aug 2016 15:43:59 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 6C3B71DE9 for ; Wed, 17 Aug 2016 15:43:59 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id i5so240605831wmg.0 for ; Wed, 17 Aug 2016 08:43:59 -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=H0Ndl2ApFE0TyNdFY/P6utS/Tp5oPcP791St4XoxE+g=; b=ORmGZk7FFvuM4B6csABHOKdMm8kOYHyvhNngp8p5KCYjcfWHv75GW+qgR3C4YN0/Yl G6IuC/ZgeQHn5U4ThINI+PRmzQRouc7AMxFldS5VTcVWbnRdkrgh0COmnpUH4+6Lgh9y gSPiiCBNRPTh9X6Dxa9UCfCI1Rly4uZOzhtpsL7mWcKiRlLthObEh+kyJAG750Dap+pJ 6nVv3yslGs6dD1UsYqo59n35fAJ3xESvCPtzNGxhAISl91CRY0UpJdRUY2RDa/v/gY// bo19yU1sTs0DgZhBJ2OEmGa3h8Xd+CqRlileZiHR4Sy1DHVV+zLSQh6Smw6TLuc1psxN ZF9Q== 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=H0Ndl2ApFE0TyNdFY/P6utS/Tp5oPcP791St4XoxE+g=; b=kZsKKSXQ/RW9MjVRkbVX3SZccJUsmmpP+2QF5KNTZPlBzS57d5MEJk6slpfzGeIrKE Eu59TrMrIvvOvR5HGkeSN11yIlkJm4BB4pyQRo3mCYYQCLuqkVHLKf/Mhm3SomZIRvq0 mqauNdRdC5X0aQFem1SMLpG7oz1p3e2gr6mvw15979VzJul7Zf2meGgwGlBMoTgVPoGN FPvrghU9CVCkZ30J8FgDGl4s/KGej0CGEBQ/9koQzFv+FJiFl7juotMilmdkw/lH92q5 TrO9/N3UUjof6FB5Rrs8h9dJNj9m+FRGkpNIDXZECKKVs7Gn2/1Cb+4hXUSuBER/aHdO Izdw== X-Gm-Message-State: AEkooutFjO3JebRhcZJGCUcidsVPSbaoZ6i5P7dPWfInzmJZZmy/ZTZso+Lrv1NjPlx43w== X-Received: by 10.28.67.194 with SMTP id q185mr5000384wma.1.1471448637994; Wed, 17 Aug 2016 08:43:57 -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 h7sm32194375wjd.17.2016.08.17.08.43.57 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Aug 2016 08:43:57 -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: Wed, 17 Aug 2016 17:43:56 +0200 Content-Transfer-Encoding: 7bit Message-Id: <9ED07C8F-4E43-4C5F-A893-61F9ADA76E56@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> <91AEB1BD-44EA-43AD-A9A1-6DEBF367DF9B@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: Wed, 17 Aug 2016 15:43:59 -0000 > On 17 Aug 2016, at 17:38, Adrian Chadd wrote: > > [snip] > > ok, so this is what I was seeing when I was working on this stuff last. > > The big abusers are: > > * so_snd lock, for TX'ing producer/consumer socket data > * tcp stack pcb locking (which rss tries to work around, but it again > doesn't help producer/consumer locking, only multiple sockets) > * for some of the workloads, the scheduler spinlocks are pretty > heavily contended and that's likely worth digging into. > > Thanks! I'll go try this on a couple of boxes I have with > intel/chelsio 40g hardware in it and see if I can reproduce it. (My > test boxes have the 40g NICs in NUMA domain 1...) You're welcome, happy to help and troubleshoot :) What about the performance which differs from one reboot to another, as if the NUMA domains have switched ? (0 to 1 & 1 to 0) Did you already see this ? Ben