diff options
author | Marcel Telka <marcel.telka@nexenta.com> | 2014-01-30 19:15:42 +0100 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2014-02-03 13:16:10 -0500 |
commit | 2f4166839a727be3768d140a622e914703414e34 (patch) | |
tree | c1a332cc6f12c16a425b8fe2e26cf7db71566d39 | |
parent | c596e8663644f226509d50dd96c7e4e15ad23f24 (diff) | |
download | illumos-joyent-2f4166839a727be3768d140a622e914703414e34.tar.gz |
4552 mountd(1m): Remove limit of FDs in RPC server
Reviewed by: Michael Tsymbalyuk <michael.tsymbalyuk@nexenta.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/cmd/fs.d/nfs/mountd/mountd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/cmd/fs.d/nfs/mountd/mountd.c b/usr/src/cmd/fs.d/nfs/mountd/mountd.c index ac6f32c456..d70c6cea8d 100644 --- a/usr/src/cmd/fs.d/nfs/mountd/mountd.c +++ b/usr/src/cmd/fs.d/nfs/mountd/mountd.c @@ -352,6 +352,7 @@ main(int argc, char *argv[]) { int pid; int c; + int rpc_svc_fdunlim = 1; int rpc_svc_mode = RPC_SVC_MT_AUTO; int maxthreads; int maxrecsz = RPC_MAXDATASIZE; @@ -506,6 +507,13 @@ main(int argc, char *argv[]) audit_mountd_setup(); /* BSM */ /* + * Set number of file descriptors to unlimited + */ + if (!rpc_control(RPC_SVC_USE_POLLFD, &rpc_svc_fdunlim)) { + syslog(LOG_INFO, "unable to set number of FDs to unlimited"); + } + + /* * Tell RPC that we want automatic thread mode. * A new thread will be spawned for each request. */ |