From 5354df8c1cff0597e735379d2bb35ef3c2c181e8 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 17 Aug 2020 22:41:26 -0600 Subject: [PATCH] Expand system tuning docs --- docs/src/running-validator/validator-start.md | 57 ++++++++++++++++++- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/docs/src/running-validator/validator-start.md b/docs/src/running-validator/validator-start.md index 94c69ce8ec..9f6eae9374 100644 --- a/docs/src/running-validator/validator-start.md +++ b/docs/src/running-validator/validator-start.md @@ -46,10 +46,14 @@ that CUDA is enabled: `"[ solana::validator] CUDA is enabled"` ## System Tuning -For Linux validators, the solana repo includes a daemon to adjust system settings to optimize -performance (namely by increasing the OS UDP buffer limits, and scheduling PoH with realtime policy). +### Linux +#### Automatic +The solana repo includes a daemon to adjust system settings to optimize performance +(namely by increasing the OS UDP buffer limits, and scheduling PoH with realtime policy). -The daemon (`solana-sys-tuner`) is included in the solana binary release. +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: @@ -57,6 +61,53 @@ To run it: sudo 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. + +##### **Increase UDP buffers** +```bash +sudo bash -c "cat >/etc/sysctl.d/20-solana-udp-buffers.conf </etc/sysctl.d/20-solana-mmaps.conf </etc/security/limits.d/90-solana-nofiles.conf <