Cap at 4 threads

This commit is contained in:
Michael Vines 2018-07-24 09:38:19 -07:00
parent 813e438d18
commit 782aa7b23b
1 changed files with 3 additions and 1 deletions

View File

@ -155,8 +155,10 @@ client_start() {
sudo snap install solana --$SOLANA_SNAP_CHANNEL --devmode; \
sudo snap set solana metrics-config=$SOLANA_METRICS_CONFIG; \
snap info solana; \
threadCount=\$(nproc); \
if [[ \$threadCount -gt 4 ]]; then threadCount=4; fi; \
tmux new -s solana -d \" \
/snap/bin/solana.bench-tps $SOLANA_NET_URL $fullnode_count --loop -t \$(nproc) 2>&1 | tee /tmp/solana.log; \
/snap/bin/solana.bench-tps $SOLANA_NET_URL $fullnode_count --loop -t \$threadCount 2>&1 | tee /tmp/solana.log; \
echo Error: bench-tps should never exit; \
bash \
\"; \