bump recommended maps/nofiles

This commit is contained in:
Trent Nelson
2021-08-04 00:17:12 -06:00
committed by Trent Nelson
parent 6a995f5dfd
commit d60ccf64e1
5 changed files with 10 additions and 10 deletions

View File

@ -89,7 +89,7 @@ sudo sysctl -p /etc/sysctl.d/20-solana-udp-buffers.conf
```bash
sudo bash -c "cat >/etc/sysctl.d/20-solana-mmaps.conf <<EOF
# Increase memory mapped files limit
vm.max_map_count = 700000
vm.max_map_count = 1000000
EOF"
```
@ -100,14 +100,14 @@ sudo sysctl -p /etc/sysctl.d/20-solana-mmaps.conf
Add
```
LimitNOFILE=700000
LimitNOFILE=1000000
```
to the `[Service]` section of your systemd service file, if you use one,
otherwise add
```
DefaultLimitNOFILE=700000
DefaultLimitNOFILE=1000000
```
to the `[Manager]` section of `/etc/systemd/system.conf`.
@ -119,7 +119,7 @@ sudo systemctl daemon-reload
```bash
sudo bash -c "cat >/etc/security/limits.d/90-solana-nofiles.conf <<EOF
# Increase process file descriptor count limit
* - nofile 700000
* - nofile 1000000
EOF"
```
@ -349,7 +349,7 @@ Type=simple
Restart=always
RestartSec=1
User=sol
LimitNOFILE=700000
LimitNOFILE=1000000
LogRateLimitIntervalSec=0
Environment="PATH=/bin:/usr/bin:/home/sol/.local/share/solana/install/active_release/bin"
ExecStart=/home/sol/bin/validator.sh