diff --git a/ci/test-large-network.sh b/ci/test-large-network.sh index b3ef60865f..6923f1e518 100755 --- a/ci/test-large-network.sh +++ b/ci/test-large-network.sh @@ -16,10 +16,20 @@ export LD_LIBRARY_PATH+=:$PWD export RUST_LOG=multinode=info -if [[ $(ulimit -n) -le 65000 ]]; then +if [[ $(ulimit -n) -lt 65000 ]]; then echo 'Error: nofiles too small, run "ulimit -n 65000" to continue' exit 1 fi +if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then + echo 'Error: rmem_default too small, run "sysctl -w net.core.rmem_default 1610612736" to continue' + exit 1 +fi + +if [[ $(sysctl -n net.core.rmem_max) -lt 1610612736 ]]; then + echo 'Error: rmem_max too small, run "sysctl -w net.core.rmem_max 1610612736" to continue' + exit 1 +fi + set -x exec cargo test --release --features=erasure test_multi_node_dynamic_network -- --ignored diff --git a/tests/multinode.rs b/tests/multinode.rs old mode 100755 new mode 100644 index 68be76d94e..7983fabdf8 --- a/tests/multinode.rs +++ b/tests/multinode.rs @@ -523,7 +523,7 @@ fn test_multi_node_dynamic_network() { Ok(val) => val .parse() .expect(&format!("env var {} is not parse-able as usize", key)), - Err(_) => 60, + Err(_) => 200, }; let purge_key = "SOLANA_DYNAMIC_NODES_PURGE_LAG";