Commit d134c0b9 authored by Kirill Smelkov's avatar Kirill Smelkov

X wcfs: test: try to live with only hard memlock limit adjusted

People don't want to raise up soft defaults
nexedi/slapos.package!130 (comment 118373)
nexedi/slapos.package!130 (comment 118405)
parent f07eb816
...@@ -75,6 +75,13 @@ def setup_module(): ...@@ -75,6 +75,13 @@ def setup_module():
gorace += " " gorace += " "
os.environ["GORACE"] = gorace + "halt_on_error=1" os.environ["GORACE"] = gorace + "halt_on_error=1"
# ↑ memlock soft-limit till its hard maximum
# (tFile needs ~ 64M to mlock while default memlock soft-limit is usually 64K)
from resource import setrlimit, getrlimit, RLIMIT_MEMLOCK
memlockS, memlockH = getrlimit(RLIMIT_MEMLOCK)
if memlockS != memlockH:
setrlimit(RLIMIT_MEMLOCK, (memlockH, memlockH))
global testdb, testzurl, testmntpt global testdb, testzurl, testmntpt
testdb = getTestDB() testdb = getTestDB()
testdb.setup() testdb.setup()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment