X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6cb6d4343e0d80e84e46b1e4f11a7cb2f0e06fd9..ffc46b6c2fecf585f80c5e4513a088ad21a2185b:/services/fuse/arvados_fuse/command.py diff --git a/services/fuse/arvados_fuse/command.py b/services/fuse/arvados_fuse/command.py index e232b65ec2..e275825a61 100644 --- a/services/fuse/arvados_fuse/command.py +++ b/services/fuse/arvados_fuse/command.py @@ -137,10 +137,12 @@ class Mount(object): try: nofile_limit = resource.getrlimit(resource.RLIMIT_NOFILE) if nofile_limit[0] < 10240: - resource.getslimit(resource.RLIMIT_NOFILE, min(10240, nofile_limit[1])) + resource.setrlimit(resource.RLIMIT_NOFILE, (min(10240, nofile_limit[1]), nofile_limit[1])) except Exception as e: self.logger.warning("arv-mount: unable to adjust file handle limit: %s", e) + self.logger.debug("arv-mount: file handle limit is %s", resource.getrlimit(resource.RLIMIT_NOFILE)) + try: self._setup_logging() self._setup_api()