Increase the number of files a node may have open at a time
This commit is contained in:
@ -15,10 +15,7 @@ export LD_LIBRARY_PATH=$PWD/target/perf-libs:$LD_LIBRARY_PATH
|
||||
|
||||
export RUST_LOG=multinode=info
|
||||
|
||||
if [[ $(ulimit -n) -lt 65000 ]]; then
|
||||
echo 'Error: nofiles too small, run "ulimit -n 65000" to continue'
|
||||
exit 1
|
||||
fi
|
||||
scripts/ulimit-n.sh
|
||||
|
||||
if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then
|
||||
echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.rmem_default=1610612736" to continue'
|
||||
|
@ -12,16 +12,7 @@ _() {
|
||||
"$@"
|
||||
}
|
||||
|
||||
maxOpenFds=65000
|
||||
if [[ $(uname) = Darwin ]]; then
|
||||
maxOpenFds=24576 # Appears to be the max permitted on macOS...
|
||||
fi
|
||||
if [[ $(ulimit -n) -lt $maxOpenFds ]]; then
|
||||
ulimit -n $maxOpenFds|| {
|
||||
echo 'Error: nofiles too small, run "ulimit -n 65000" to continue';
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
_ scripts/ulimit-n.sh
|
||||
|
||||
_ cargo build --all --verbose
|
||||
_ cargo test --all --verbose --lib -- --nocapture --test-threads=1
|
||||
|
Reference in New Issue
Block a user