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@omnilan.de
This commit is contained in:
rmacklem 2014-08-10 01:13:32 +00:00
parent ff74079d9b
commit cb34fe67aa

View File

@ -749,10 +749,9 @@ nfsrvd_compound(struct nfsrv_descript *nd, int isdgram, u_char *tag,
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) {