Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp541941pxu; Tue, 6 Oct 2020 12:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwieuhQmDZCO0EAb0+7U/6SLnE9x6oTc8+scz6SFXkANWWUD3+JgmyHKW3D3dm2eqvyrLYi X-Received: by 2002:a17:906:22d8:: with SMTP id q24mr1078268eja.479.1602012798364; Tue, 06 Oct 2020 12:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602012798; cv=none; d=google.com; s=arc-20160816; b=FGZNNdjutHUr/8cKsmYt9M4wxu0R9/qqXeXQ3G8HliXk69D2MWj6NCKkLuHhU0ACBW dBOjYmdft2Pxb5NJd1xkh3nRj0nKDqm4aVSQpTiSBPg0QPGqEDdsFhQtquSlWQcmXgTc 5b3ChUFpOM0pDieREVt2gulddRu1qB4urfIdTkMvEGBKjupB3hCIxFLB6SDecYuDBb0+ uU+ACeoeO4fvQXkqyzwfelTvzu/SzTuqICt6sjUKKn4s5stObFjDe2JYvmzGq88rw/kz DfH6ikMNF7ZcLmNuJQuRztqjQ+PSDP9Tg4Kq1RgNMfmC6mIVfzqIgn8jGlk87lGGvLur gyHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=Le0ZSpkW43lwupOkoL3VYytnF99fpVA9Sp/y0Ld+Aqs=; b=gCSxjpp7k5Zzo3Lovg0xSjuid4ds05gOXQZdJPAOlQqWxZg1XS03bqi6EUsmyFA35J TRhsRh0mzUT/v1xKEhsVADzubWFmu/lNnpbzZN7LVcqYQdfqf9dvpJ3YGhuBS01E4Pz6 vv/uM6YMEgHirzgyrNZT0QtMmpa+efTYJ8HG0ZccNKtkOFL7vKunl/rDxMwXVSyKBDRy 8f9XHbGcTS37EAGfFhf0oWzDyBHQ9ZKEBN9qLEnalKL8l+mWHEyXt+naQ6n0v0AAtMWY NgvIqlVZ4dY/5hUnvqxzPp07ZUWjDzArnGlxOjGjm7yC4s9w4YLzDoUZoYIL+0NwyGRq 6uqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=Pl8r81De; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si3206290edy.490.2020.10.06.12.32.40; Tue, 06 Oct 2020 12:33:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=Pl8r81De; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727060AbgJFTap (ORCPT + 99 others); Tue, 6 Oct 2020 15:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbgJFTap (ORCPT ); Tue, 6 Oct 2020 15:30:45 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE6AC061755 for ; Tue, 6 Oct 2020 12:30:45 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 5819D69C3; Tue, 6 Oct 2020 15:30:44 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 5819D69C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1602012644; bh=Le0ZSpkW43lwupOkoL3VYytnF99fpVA9Sp/y0Ld+Aqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pl8r81DeDSIrgUsKUo6G6+gNDeFgyv5L3a4kDo30j4y+2G+yICIOduPmwPRafTxbs z1reax+yoxSLT+nVoPn/u+LpEaB9bTMHPUVTf0tHWeeocR3L+9ZwqCxckInSmGcfvk kGXhy6D4LM7c60VYHeamKCt9jSTEACy7hpa1nnCs= Date: Tue, 6 Oct 2020 15:30:44 -0400 From: Bruce Fields To: Tom Talpey Cc: Chuck Lever , Linux NFS Mailing List Subject: Re: unsharing tcp connections from different NFS mounts Message-ID: <20201006193044.GC32640@fieldses.org> References: <20201006151335.GB28306@fieldses.org> <43CA4047-F058-4339-AD64-29453AE215D6@oracle.com> <20201006152223.GD28306@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Oct 06, 2020 at 01:07:11PM -0400, Tom Talpey wrote: > On 10/6/2020 11:22 AM, Bruce Fields wrote: > >On Tue, Oct 06, 2020 at 11:20:41AM -0400, Chuck Lever wrote: > >> > >> > >>>On Oct 6, 2020, at 11:13 AM, bfields@fieldses.org wrote: > >>> > >>>NFSv4.1+ differs from earlier versions in that it always performs > >>>trunking discovery that results in mounts to the same server sharing a > >>>TCP connection. > >>> > >>>It turns out this results in performance regressions for some users; > >>>apparently the workload on one mount interferes with performance of > >>>another mount, and they were previously able to work around the problem > >>>by using different server IP addresses for the different mounts. > >>> > >>>Am I overlooking some hack that would reenable the previous behavior? > >>>Or would people be averse to an "-o noshareconn" option? > >> > >>I thought this was what the nconnect mount option was for. > > > >I've suggested that. It doesn't isolate the two mounts from each other > >in the same way, but I can imagine it might make it less likely that a > >user on one mount will block a user on another? I don't know, it might > >depend on the details of their workload and a certain amount of luck. > > Wouldn't it be better to fully understand the reason for the > performance difference, before changing the mount API? If it's > a guess, it'll come back to haunt the code for years. > > For example, maybe it's lock contention in the xprt transport code, > or in the socket stack. Yeah, I wonder too, and I don't have the details. --b.