Skip to content

Commit

Permalink
remove solana-sys-tuner binary and all references (#31682)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-nelson authored May 17, 2023
1 parent 9b860ab commit b422ac0
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 332 deletions.
35 changes: 0 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ members = [
"storage-bigtable/build-proto",
"storage-proto",
"streamer",
"sys-tuner",
"test-validator",
"thin-client",
"tokens",
Expand Down Expand Up @@ -349,7 +348,6 @@ solana-stake-program = { path = "programs/stake", version = "=1.16.0" }
solana-storage-bigtable = { path = "storage-bigtable", version = "=1.16.0" }
solana-storage-proto = { path = "storage-proto", version = "=1.16.0" }
solana-streamer = { path = "streamer", version = "=1.16.0" }
solana-sys-tuner = { path = "sys-tuner", version = "=1.16.0" }
solana-system-program = { path = "programs/system", version = "=1.16.0" }
solana-test-validator = { path = "test-validator", version = "=1.16.0" }
solana-thin-client = { path = "thin-client", version = "=1.16.0" }
Expand Down
22 changes: 2 additions & 20 deletions docs/src/running-validator/validator-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,10 @@ that CUDA is enabled: `"[<timestamp> solana::validator] CUDA is enabled"`

### Linux

#### Automatic

The solana repo includes a daemon to adjust system settings to optimize performance
(namely by increasing the OS UDP buffer and file mapping limits).

The daemon (`solana-sys-tuner`) is included in the solana binary release. Restart
it, _before_ restarting your validator, after each software upgrade to ensure that
the latest recommended settings are applied.

To run it:

```bash
sudo $(command -v solana-sys-tuner) --user $(whoami) > sys-tuner.log 2>&1 &
```

#### Manual

If you would prefer to manage system settings on your own, you may do so with
the following commands.

##### **Optimize sysctl knobs**
#### **Optimize sysctl knobs**

```bash
sudo bash -c "cat >/etc/sysctl.d/21-solana-validator.conf <<EOF
Expand All @@ -80,7 +63,7 @@ EOF"
sudo sysctl -p /etc/sysctl.d/21-solana-validator.conf
```

##### **Increase systemd and session file limits**
#### **Increase systemd and session file limits**

Add

Expand Down Expand Up @@ -353,7 +336,6 @@ the following:
[Unit]
Description=Solana Validator
After=network.target
Wants=solana-sys-tuner.service
StartLimitIntervalSec=0
[Service]
Expand Down
3 changes: 0 additions & 3 deletions net/remote/remote-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ cat >> ~/solana/on-reboot <<EOF
PATH="$HOME"/.cargo/bin:"$PATH"
export USE_INSTALL=1
sudo RUST_LOG=info ~solana/.cargo/bin/solana-sys-tuner --user $(whoami) > sys-tuner.log 2>&1 &
echo \$! > sys-tuner.pid
(
sudo SOLANA_METRICS_CONFIG="$SOLANA_METRICS_CONFIG" scripts/oom-monitor.sh
) > oom-monitor.log 2>&1 &
Expand Down
1 change: 0 additions & 1 deletion poh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ solana-measure = { workspace = true }
solana-metrics = { workspace = true }
solana-runtime = { workspace = true }
solana-sdk = { workspace = true }
solana-sys-tuner = { workspace = true }
thiserror = { workspace = true }

[dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion poh/src/poh_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ impl PohService {
let tick_producer = Builder::new()
.name("solPohTickProd".to_string())
.spawn(move || {
solana_sys_tuner::request_realtime_poh();
if poh_config.hashes_per_tick.is_none() {
if poh_config.target_tick_count.is_none() {
Self::low_power_tick_producer(
Expand Down
35 changes: 0 additions & 35 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion scripts/cargo-install-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ else
solana-ledger-tool
solana-log-analyzer
solana-net-shaper
solana-sys-tuner
solana-validator
rbpf-cli
)
Expand Down
34 changes: 0 additions & 34 deletions sys-tuner/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions sys-tuner/src/lib.rs

This file was deleted.

Loading

0 comments on commit b422ac0

Please sign in to comment.