Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5318780ybi; Wed, 12 Jun 2019 00:07:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+JvR4/rt0E/Vg6YI6JbPhQ3Ck0QdEJVkskZtmf/VHyg5TO01KqQauVg7pVAeNevVBPz8W X-Received: by 2002:a17:90a:22ef:: with SMTP id s102mr14020957pjc.2.1560323249005; Wed, 12 Jun 2019 00:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560323248; cv=none; d=google.com; s=arc-20160816; b=al7gWdqr1kk1uPRBDqZiJBiIUCK3PHGYpXXW2H+til0UdtbfYekBDF0p4D/hbAuDDC E7Pj+BRmAmtGcOPMKN6A5NACgheMVW5BEjQd+hQcahiwIcAnNQ9ZBRd1LsvTsDEI3oPb 6bOgj8gctKaosMiDYS9VaUyZI5HVTleuJdlX2QMkoB8vRLG3+JeIun18KdLb6rZL/Uoe y7Pw4xpxXIO6Q/C3P0DIQKbo0oXzjtApS+thZEcN2yse9fHAiCDWw3PtbjHWqDO3/0Lo zqiq7kxZzmb9+uUMHviDxyschL2rMck8sPk8KEDMMTWwbjMMObkLvk4FZ2wy8Uj3L2wX vb/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=TszATK7MNhToNJA7oQaEqHTQ3IDA+p1xqMhqJt9aSUc=; b=SWNOdL3yyOcEmyzMEm18BsenwUT8bLjzAiLK0Lif8WCluwoDSVh8kVsSU40ow3Svxv jgXU1Q+z0C4eu6hgg8oZaCU4Pp3fjGMw2cWw0UvkTTmFQ+qfHLMOvNdgqUPLUc7BvM3B QTKG2du+XQ973MMLSiJ3kh/nBAeSg0Ah6nUTrpF2xVk6MITso+7NLlcKbTDudB8bZCR/ /GGzb8XgASxx2CBHUBw75Ks4HIIiqqqqizRyBG8ES0J74/oZgbQClKh5HQbSbUd8RYgv TJZdt94htxQ4OH3cV6kfrbDs8UOoGCQUvX18nNNU8r8DEVlV9An+Me5dx+hUH4YqJlES t5aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si5733841pgb.234.2019.06.12.00.07.07; Wed, 12 Jun 2019 00:07:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391800AbfFKXmT (ORCPT + 99 others); Tue, 11 Jun 2019 19:42:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:36038 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389600AbfFKXmT (ORCPT ); Tue, 11 Jun 2019 19:42:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B8C70AC3F; Tue, 11 Jun 2019 23:42:17 +0000 (UTC) From: NeilBrown To: Chuck Lever , Olga Kornievskaia Date: Wed, 12 Jun 2019 09:42:10 +1000 Cc: Anna Schumaker , Trond Myklebust , Linux NFS Mailing List Subject: Re: [PATCH 0/9] Multiple network connections for a single NFS mount. In-Reply-To: <16D30334-67BE-4BD2-BE69-1453F738B259@oracle.com> References: <155917564898.3988.6096672032831115016.stgit@noble.brown> <001DED71-0E0D-46B1-BA34-84E6ACCBB79F@oracle.com> <87muj3tuuk.fsf@notabene.neil.brown.name> <4316E30B-1BD7-4F0E-8375-03E9F85FFD2B@oracle.com> <87lfy9vsgf.fsf@notabene.neil.brown.name> <3B887552-91FB-493A-8FDF-411562811B36@oracle.com> <16D30334-67BE-4BD2-BE69-1453F738B259@oracle.com> Message-ID: <877e9rwuy5.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --=-=-= Content-Type: text/plain On Tue, Jun 11 2019, Chuck Lever wrote: > > Earlier in this thread, Neil proposed to make nconnect a hint. Sounds > like the long term plan is to allow "up to N" connections with some > mechanism to create new connections on-demand." maxconn fits that idea > better, though I'd prefer no new mount options... the point being that > eventually, this setting is likely to be an upper bound rather than a > fixed value. When I suggested making at I hint, I considered and rejected the the idea of making it a maximum. Maybe I should have been explicit about that. I think it *is* important to be able to disable multiple connections, hence my suggestion that "nconnect=1", as a special case, could be a firm maximum. My intent was that if nconnect was not specified, or was given a larger number, then the implementation should be free to use however many connections it chose from time to time. The number given would be just a hint - maybe an initial value. Neither a maximum nor a minimum. Maybe we should add "nonconnect" (or similar) to enforce a single connection, rather than overloading "nconnect=1" You have said elsewhere that you would prefer configuration in a config file rather than as a mount option. How do you imagine that configuration information getting into the kernel? Do we create /sys/fs/nfs/something? or add to /proc/sys/sunrpc or /proc/net/rpc .... we have so many options !! There is even /sys/kernel/debug/sunrpc/rpc_clnt, but that is not a good place for configuration. I suspect that you don't really have an opinion, you just don't like the mount option. However I don't have that luxury. I need to put the configuration somewhere. As it is per-server configuration the only existing place that works at all is a mount option. While that might not be ideal, I do think it is most realistic. Mount options can be deprecated, and carrying support for a deprecated mount option is not expensive. The option still can be placed in a per-server part of /etc/nfsmount.conf rather than /etc/fstab, if that is what a sysadmin wants to do. Thanks, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl0APFIACgkQOeye3VZi gbnAqg/9Hh0ee1kg39+AxVBkiOkwCn9fqzzM9Rsu7QEWnX2Xicd8WaJnKn730onO Nc0B2X7Zy9kiPzpDbU1TBLa+4LDa3fmxk9d7qZcpM1RplArO7edjEImxwKYdhOCG AG1PrWuJe2wdf8pJNHpLEg7YMg7h2atcr/JHyUoRKXcCRlydtCvhw8QcsvfU58i4 clSK5OgMIabPwE856sI2pHHCF+XE0c9e724IsZ3g77o/riKVRG6I5cSjzebQVgNe yxWr7oc03rgD/tYMDrtUTuqJHXFO0b5dOU6wp5LWHV6mBcagDNWIdUz/T9xXZj4Q XQcDqsPKcBKuzvN2e/z73sO3Hb4di9pZDJtUm7dKBAH3Vvys3UKHB3YHXEyy5XBL nKLxxsFCqZY6sBmdVAP/92AyUSEmzYjYqO97rGtt1PAlkSOIxFems94F7MFgv0v9 eNOEjLIrZ97Elq7UegxI4WRD3ma+eQUi0qQIcqJjOd3ZexVsE3g/5BKUNd+mQqGS WzlTz75UZgcNoEGFxJExyo6ZFbf0stYZe0AeOp1wZ+8W9WuBZybfvxYWmNV8FZBz HL3zyLW01CPGnlMlCEMcrhYCTz3nrepRtLnc9IDmzhEIhL0xfJOUErLlxS83Ck8T lYKtefpIo6+zS8i0QSiEd8krGVEyZfM+4DGehoS/T3FQnte+cDo= =7Zx9 -----END PGP SIGNATURE----- --=-=-=--