tools/ci.sh: Set `ulimit -n` for unix CI.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
parent
8b24aa36ba
commit
74fd7b3d32
|
@ -35,7 +35,8 @@ poller.register(1, select.POLLIN)
|
||||||
print(poller.poll(0))
|
print(poller.poll(0))
|
||||||
|
|
||||||
# Test registering a very large number of file descriptors (will trigger
|
# Test registering a very large number of file descriptors (will trigger
|
||||||
# EINVAL due to more than OPEN_MAX fds).
|
# EINVAL due to more than OPEN_MAX fds). Typically it's 1024 (and on GitHub CI
|
||||||
|
# we force this via `ulimit -n 1024`).
|
||||||
poller = select.poll()
|
poller = select.poll()
|
||||||
for fd in range(6000):
|
for fd in range(6000):
|
||||||
poller.register(fd)
|
poller.register(fd)
|
||||||
|
|
|
@ -6,6 +6,9 @@ else
|
||||||
MAKEOPTS="-j$(sysctl -n hw.ncpu)"
|
MAKEOPTS="-j$(sysctl -n hw.ncpu)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure known OPEN_MAX (NO_FILES) limit.
|
||||||
|
ulimit -n 1024
|
||||||
|
|
||||||
########################################################################################
|
########################################################################################
|
||||||
# general helper functions
|
# general helper functions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue