Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp663244pxu; Tue, 6 Oct 2020 16:17:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ0OdqGoLoMa8FwTvNGiQ4k4bcUjeOa6HS0QScYktDkXX7o216iN44HGGGzhxiWN6btGvV X-Received: by 2002:a17:906:489b:: with SMTP id v27mr394550ejq.315.1602026268077; Tue, 06 Oct 2020 16:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602026268; cv=none; d=google.com; s=arc-20160816; b=YcB9uipcN7omNFeih+48FIuN/xD7ZyiXn4Ty9zGOJeiPCOxO6erNqkC/0hVTQQnMBC wo7fdHVZqWClh7FDtEclA+RcqOOd4tuF5pzOY4pyfuPAt6lZRqSG3sS3KY0NA0OHCwSB Bc2QWftwykjs4A/HHIHnppRNl04qM3+hdQ3yyknFONsAFmkoJsvvJsrUzlPX7qGyPSFd G8Co3UfL9UrybToX5KCLhhvvffLO2vYFgrPXAtK75xn9D82P3F199LoaHpv1bPsvBOGK 1OCCjxylzIayr/2e5QtSBdKFtCaKpCqol/gsEyDodtpTIER9MPTlJ7BhO1NA8HBIRyYW 8+PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QbHxbVzAL/FCa7e8ofbvFTyOhXAwRBnh9tG8sTahv8I=; b=Jpk5YtU3BpgQvsy9aLu/CdmTG++M3w4kCdpBVJC75zfXT6ZPbiT/QvI7t9k6Tj/i6w 62D/0pN4ljNH1f9vbNGFC4mpQMNA6rWaLHIULYXR86GwDRi5ynDslMP62okz4UhZhUJ4 oT0fw0s22fkQeS8p+l3ntu2ncGSCNOlQT3DAoPAFvvig9/9PvivMtcSaox7xyGLbOJiq XffR7rc9Kn/K7fKwPi0um0svXah0nPLt6B8PI9F737gby370hL4Buo4darGCV9nzEF29 CMDiV/+zStSqQhctemiohUFO0vB8H/NY0fQBSuv1gELcRBF+pLh0gQzCms+Xt4dGmhHe ADuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=Y706aE2i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si172402ejj.163.2020.10.06.16.17.12; Tue, 06 Oct 2020 16:17:48 -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=@umich.edu header.s=google-2016-06-03 header.b=Y706aE2i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726442AbgJFVqY (ORCPT + 99 others); Tue, 6 Oct 2020 17:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgJFVqY (ORCPT ); Tue, 6 Oct 2020 17:46:24 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFBDC061755 for ; Tue, 6 Oct 2020 14:46:23 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id md26so2963ejb.10 for ; Tue, 06 Oct 2020 14:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QbHxbVzAL/FCa7e8ofbvFTyOhXAwRBnh9tG8sTahv8I=; b=Y706aE2iFRo2rRSOYiz4DRYZkkAZCKTutxnLs7PsmqAbPw5pAPhPEV5Nh4FjKC9XAK VIa7O6DCzrJALDfYjsDjJv2qaKAGxEGLbfygHdQGIM+qPuczPUTuhjIUnFKBKtNFvzE4 tIRS3GOKXU/aKJVqogzMTOCx2ptJkeFzcZJ2A895ngn30Jrw93cCBFycNsUvjhZ80toa DgchKjX0QjKHvEEQIbDK7/20aMDaWLNr4ETpZMDhy5/AkJiPgEEzNK8KHM4tFlaTeYH0 yaQvDA+XZjix+eGMFy7ji1fbyJJWXqvZ/VWjgcc/8dAh5LU5s4ezHbguaXqwXDZPA9Um B7Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QbHxbVzAL/FCa7e8ofbvFTyOhXAwRBnh9tG8sTahv8I=; b=TVdZGPwGI2OLsFx61gfAL9+ljsJr0AgjuMJiaJnsp6acutICuYEiruKqAciQhJj4Lg oDP2z5Ebr0+YJxnOpmvynokFFxS9giVwnpQYmYBi//NWrlL/b7/K6izvMtHGauwxtMCf ApvVFJKIxX2+PSH94Dki+Z+IBnU81KNIo54VS6Ov96rTL/cF+lFvqQoKYIFbHcu3Sm8B gtf0r+LGzNAjnUKjQdu9AkrvhU9oPqgAgi82M/NHrUpchPWwXU7hZp5K7+tyY7uV+lK8 ZD+lB4taMmuVQu1NTFmPSrgY8HkgdZn8GRPmUU/B0IPdf2ouPNWTTltvOPy2oEODd7N4 iCNg== X-Gm-Message-State: AOAM533MyY7qaQwCzY9kZ/GpUhJj+iT6G5+1KSJTBmqKki1gELLRLlhB DeuBXL+i4HxDlrF4MMpDXQCeDFy2sC4we1ECEPKNW3f4qMo= X-Received: by 2002:a17:906:bcfc:: with SMTP id op28mr96242ejb.248.1602020782409; Tue, 06 Oct 2020 14:46:22 -0700 (PDT) MIME-Version: 1.0 References: <20201006151335.GB28306@fieldses.org> <95542179-0C20-4A1F-A835-77E73AD70DB8@redhat.com> In-Reply-To: <95542179-0C20-4A1F-A835-77E73AD70DB8@redhat.com> From: Olga Kornievskaia Date: Tue, 6 Oct 2020 17:46:11 -0400 Message-ID: Subject: Re: unsharing tcp connections from different NFS mounts To: Benjamin Coddington Cc: "J. Bruce Fields" , linux-nfs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Oct 6, 2020 at 3:38 PM Benjamin Coddington wrote: > > On 6 Oct 2020, at 11:13, J. Bruce Fields 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 suppose you could just toggle the nfs4_unique_id parameter. This > seems to > work: > > flock /sys/module/nfs/parameters/nfs4_unique_id bash -c "OLD_ID=\$(cat > /sys/module/nfs/parameters/nfs4_unique_id); echo imalittleteapot > > /sys/module/nfs/parameters/nfs4_unique_id; mount -ov4,sec=sys > 10.0.1.200:/exports /mnt/fedora2; echo \$OLD_ID > > /sys/module/nfs/parameters/nfs4_unique_id" > > I'm trying to think of a reason why this is a bad idea, and not coming > up > with any. Can we support users that have already found this solution? > What about reboot recovery? How will each mount recover its own state (and present the same identifier it used before). Client only keeps track of one? > Ben >