summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDirk Mueller <dirk@dmllr.de>2018-10-04 14:37:25 +0200
committerDirk Mueller <dirk@dmllr.de>2018-10-09 12:12:46 +0200
commitc0a86998203315858721a7b2c8ab75fbf5cd51d9 (patch)
treee695fa226644d9b936a4140bdd9173c3e6bd94f5 /doc
parent2ebda956b4318c86d27b3659ccce01abb73e0902 (diff)
downloadoslo-rootwrap-c0a86998203315858721a7b2c8ab75fbf5cd51d9.tar.gz
Run rootwrap with lower fd ulimit by default
On Python 2.x, a subprocess.Popen() with close_fds=True will fork and then close filedescriptors range(3..os.sysconf("SC_OPEN_MAX")), which thanks to Kernel PTI (Kaiser patches) is significantly slower in 2018 when the range is very large. With a soft limit of 1048576, benchmark.py reports an overhead of ~ 400ms without this patch and 2ms with the patch applied. This patch adds a configuration option and sets a more sensible default of 1024 file descriptor limit by default. Closes-Bug: 1796267 Change-Id: Idd98c183eca3e2df8648fc0f37d27fe9cc6d0563
Diffstat (limited to 'doc')
-rw-r--r--doc/source/user/usage.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/source/user/usage.rst b/doc/source/user/usage.rst
index 56f4bcb..bb11d5b 100644
--- a/doc/source/user/usage.rst
+++ b/doc/source/user/usage.rst
@@ -113,6 +113,14 @@ syslog_log_level
unsuccessful attempts. Example:
``syslog_log_level=ERROR``
+rlimit_nofile
+ Which rlimit for number of open file descriptors should be set for rootwrap
+ and its children processes by default. This is useful in case there is a
+ excessively large ulimit configured for the calling process that shouldn't
+ inherit to oslo.rootwrap and its called processes. Will not attempt to raise
+ the limit. Defaults to 1024.
+
+
.filters files
==============