oslo.rootwrap/oslo_rootwrap
Dirk Mueller c0a8699820 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
2018-10-09 12:12:46 +02:00
..
tests Make IpNetnsExecFilter more strict to detect aliases 2018-05-10 12:40:29 +00:00
__init__.py Fix Python 3 support for eventlet monkey-patching 2015-10-13 21:51:47 +02:00
client.py Add bandit to pep8 job 2017-12-13 11:25:50 +08:00
cmd.py Run rootwrap with lower fd ulimit by default 2018-10-09 12:12:46 +02:00
daemon.py Allow rootwrap-daemon to timeout and exit 2017-03-02 10:58:04 +09:00
filters.py Make IpNetnsExecFilter more strict to detect aliases 2018-05-10 12:40:29 +00:00
jsonrpc.py Drop python 2.6 support 2015-11-26 21:00:29 +08:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:21 -05:00
wrapper.py Run rootwrap with lower fd ulimit by default 2018-10-09 12:12:46 +02:00