Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Skip sysctl on systems that don't support it
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 15, 2018
1 parent 956bc48 commit c62c24a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions multinode-demo/leader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# if RUST_LOG is unset, default to info
export RUST_LOG=${RUST_LOG:-solana=info}

(
set -x
sudo sysctl -w net.core.rmem_max=26214400
)
if [[ "$(uname)" = "Linux" ]]; then
(
set -x
sudo sysctl -w net.core.rmem_max=26214400
)
fi
cargo run --release --bin solana-fullnode -- -l leader.json < genesis.log
4 changes: 3 additions & 1 deletion multinode-demo/validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ set -x

rsync -v -e ssh "$LEADER"/{mint-demo.json,leader.json,genesis.log} . || exit $?

sudo sysctl -w net.core.rmem_max=26214400
if [[ "$(uname)" = "Linux" ]]; then
sudo sysctl -w net.core.rmem_max=26214400
fi

# if RUST_LOG is unset, default to info
export RUST_LOG=${RUST_LOG:-solana=info}
Expand Down

0 comments on commit c62c24a

Please sign in to comment.