docs: aggregate sysctl knob optimization to one config file

This commit is contained in:
Trent Nelson 2022-06-24 15:47:26 -06:00 committed by Trent Nelson
parent 66ad921200
commit 78fcf89574
1 changed files with 5 additions and 14 deletions

View File

@ -58,35 +58,26 @@ sudo $(command -v solana-sys-tuner) --user $(whoami) > sys-tuner.log 2>&1 &
If you would prefer to manage system settings on your own, you may do so with If you would prefer to manage system settings on your own, you may do so with
the following commands. the following commands.
##### **Increase UDP buffers** ##### **Optimize sysctl knobs**
```bash ```bash
sudo bash -c "cat >/etc/sysctl.d/20-solana-udp-buffers.conf <<EOF sudo bash -c "cat >/etc/sysctl.d/21-solana-validator.conf <<EOF
# Increase UDP buffer size # Increase UDP buffer sizes
net.core.rmem_default = 134217728 net.core.rmem_default = 134217728
net.core.rmem_max = 134217728 net.core.rmem_max = 134217728
net.core.wmem_default = 134217728 net.core.wmem_default = 134217728
net.core.wmem_max = 134217728 net.core.wmem_max = 134217728
EOF"
```
```bash
sudo sysctl -p /etc/sysctl.d/20-solana-udp-buffers.conf
```
##### **Increased memory mapped files limit**
```bash
sudo bash -c "cat >/etc/sysctl.d/20-solana-mmaps.conf <<EOF
# Increase memory mapped files limit # Increase memory mapped files limit
vm.max_map_count = 1000000 vm.max_map_count = 1000000
EOF" EOF"
``` ```
```bash ```bash
sudo sysctl -p /etc/sysctl.d/20-solana-mmaps.conf sudo sysctl -p /etc/sysctl.d/21-solana-validator.conf
``` ```
##### **Increase systemd and session file limits**
Add Add
``` ```