Increase userspace (/usr/sbin/nfsd) limit on nfsd count from 20 to 1024.
Jason Thorpe suggests removing the limit altogether; anyone who needs more than 1024 nfsds can still do "nfsd -n 1024" multiple times, and this provides _some_ saftey-net against nfsd (issued by root) from eating all the avaiable process slots.
This commit is contained in:
parent
4673a65de6
commit
52315e5149
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfsd.c,v 1.43 2003/08/07 11:25:37 agc Exp $ */
|
||||
/* $NetBSD: nfsd.c,v 1.44 2003/12/06 03:01:16 jonathan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
|
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: nfsd.c,v 1.43 2003/08/07 11:25:37 agc Exp $");
|
||||
__RCSID("$NetBSD: nfsd.c,v 1.44 2003/12/06 03:01:16 jonathan Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -160,7 +160,7 @@ main(argc, argv)
|
|||
char *cp, **cpp;
|
||||
#endif
|
||||
|
||||
#define MAXNFSDCNT 20
|
||||
#define MAXNFSDCNT 1024
|
||||
#define DEFNFSDCNT 4
|
||||
nfsdcnt = DEFNFSDCNT;
|
||||
cltpflag = reregister = tcpflag = tp4cnt = tp4flag = tpipcnt = 0;
|
||||
|
|
Loading…
Reference in New Issue