From owner-dev-commits-src-all@freebsd.org Tue Aug 3 23:52:06 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 93134652FDA; Tue, 3 Aug 2021 23:52:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GfWr63ljFz4ZW0; Tue, 3 Aug 2021 23:52:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 69B331C6F5; Tue, 3 Aug 2021 23:52:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 173Nq6bG013866; Tue, 3 Aug 2021 23:52:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 173Nq6SX013865; Tue, 3 Aug 2021 23:52:06 GMT (envelope-from git) Date: Tue, 3 Aug 2021 23:52:06 GMT Message-Id: <202108032352.173Nq6SX013865@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Rick Macklem Subject: git: 46b4c26b5b01 - stable/13 - mount_nfs.8: Add information for "nconnect" to man page MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 46b4c26b5b01e48894d5d0979a4bfc6bc8725a4a Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2021 23:52:06 -0000 The branch stable/13 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=46b4c26b5b01e48894d5d0979a4bfc6bc8725a4a commit 46b4c26b5b01e48894d5d0979a4bfc6bc8725a4a Author: Rick Macklem AuthorDate: 2021-07-11 20:34:16 +0000 Commit: Rick Macklem CommitDate: 2021-08-03 23:49:28 +0000 mount_nfs.8: Add information for "nconnect" to man page Commit 1e0a518d6548 added a new NFS mount option "nconnect". This patch adds information on this option to the man page. It also adds an IMPLEMENTATION section that explains how the default I/O size is determined and that "nfsstat -m" can be used to find out what option settings are actually in use. This is a content change. (cherry picked from commit 4488c8c34ba38146aab52fd60211bb32cdc87267) --- sbin/mount_nfs/mount_nfs.8 | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/sbin/mount_nfs/mount_nfs.8 b/sbin/mount_nfs/mount_nfs.8 index 36a3c180b1e3..648cb2128e90 100644 --- a/sbin/mount_nfs/mount_nfs.8 +++ b/sbin/mount_nfs/mount_nfs.8 @@ -28,7 +28,7 @@ .\" @(#)mount_nfs.8 8.3 (Berkeley) 3/29/95 .\" $FreeBSD$ .\" -.Dd June 26, 2021 +.Dd July 10, 2021 .Dt MOUNT_NFS 8 .Os .Sh NAME @@ -196,6 +196,25 @@ If this is set to 0 it disables positive name caching for the mount point. Override the default of NFS_DEFAULT_NEGNAMETIMEO for the timeout (in seconds) for negative name cache entries. If this is set to 0 it disables negative name caching for the mount point. +.It Cm nconnect Ns = Ns Aq Ar value +Specify the number of TCP connections (1-16) to be used +for an NFS Version 4, minor version 1 or 2 mount. +Multiple TCP connections can provide more client to server network +bandwidth for certain network configurations such as: +.Bd -literal +- Multiple network interfaces that are aggregated together. +- A fast network interface that uses multiple queues. +.Ed +.sp +The first TCP connection will be used for all RPCs that consist +entirely of small RPC messages. +The RPCs that can have large RPC messages (Read/Readdir/Write) are +distributed over the additional TCP connections in a round robin +fashion. +This option will result in more IP port#s being used. +This option requires the +.Cm nfsv4 +option. .It Cm nfsv2 Use the NFS Version 2 protocol (the default is to try version 3 first then version 2). @@ -586,9 +605,31 @@ Same as Same as .Fl o Cm nfsv4 .El +.Sh IMPLEMENTATION NOTES +When neither the +.Cm rsize +nor +.Cm wsize +options are specified, the I/O size will be set to the largest value +supported by both the NFS client and server. +The largest value supported by the NFS client is defined by +the tunable +.Cd vfs.maxbcachebuf +which can be set to a power of two up to +.Cd kern.maxphys . +.Pp +The +.Xr nfsstat 1 +command with the +.Ic -m +command line option will show what +.Nm +option settings are actually in use for the mount. .Sh SEE ALSO +.Xr nfsstat 1 , .Xr nmount 2 , .Xr unmount 2 , +.Xr lagg 4 , .Xr nfsv4 4 , .Xr fstab 5 , .Xr gssd 8 ,