svn commit: r269771 - head/sys/fs/nfsserver

Rick Macklem rmacklem at FreeBSD.org
Sun Aug 10 01:13:33 UTC 2014


Author: rmacklem
Date: Sun Aug 10 01:13:32 2014
New Revision: 269771
URL: http://svnweb.freebsd.org/changeset/base/269771

Log:
  Change the NFS server's printf related to hitting
  the DRC cache's flood level so that it suggests
  increasing vfs.nfsd.tcphighwater.
  
  Suggested by:	h.schmalzbauer at omnilan.de

Modified:
  head/sys/fs/nfsserver/nfs_nfsdsocket.c

Modified: head/sys/fs/nfsserver/nfs_nfsdsocket.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdsocket.c	Sun Aug 10 00:30:12 2014	(r269770)
+++ head/sys/fs/nfsserver/nfs_nfsdsocket.c	Sun Aug 10 01:13:32 2014	(r269771)
@@ -749,10 +749,9 @@ nfsrvd_compound(struct nfsrv_descript *n
 		    nd->nd_rp->rc_refcnt == 0) &&
 		    (nfsrv_mallocmget_limit() ||
 		     nfsrc_tcpsavedreplies > nfsrc_floodlevel)) {
-			if (nfsrc_tcpsavedreplies > nfsrc_floodlevel) {
-				printf("nfsd server cache flooded, try to");
-				printf(" increase nfsrc_floodlevel\n");
-			}
+			if (nfsrc_tcpsavedreplies > nfsrc_floodlevel)
+				printf("nfsd server cache flooded, try "
+				    "increasing vfs.nfsd.tcphighwater\n");
 			nd->nd_repstat = NFSERR_RESOURCE;
 			*repp = nfsd_errmap(nd);
 			if (op == NFSV4OP_SETATTR) {


More information about the svn-src-head mailing list