Cap at 4 threads
This commit is contained in:
parent
813e438d18
commit
782aa7b23b
|
@ -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 \
|
||||
\"; \
|
||||
|
|
Loading…
Reference in New Issue