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

@ -76,7 +76,7 @@ RestartForceExitStatus=SIGPIPE
TimeoutStartSec=10 TimeoutStartSec=10
TimeoutStopSec=0 TimeoutStopSec=0
KillMode=process KillMode=process
LimitNOFILE=700000 LimitNOFILE=1000000
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,5 +8,5 @@ source "$HERE"/utils.sh
ensure_env || exit 1 ensure_env || exit 1
# Allow more files to be opened by a user # Allow more files to be opened by a user
echo "* - nofile 700000" > /etc/security/limits.d/90-solana-nofiles.conf echo "* - nofile 1000000" > /etc/security/limits.d/90-solana-nofiles.conf

View File

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

View File

@ -6,12 +6,12 @@ https://hub.docker.com/r/solanalabs/solana/
### Usage: ### Usage:
Run the latest beta image: Run the latest beta image:
```bash ```bash
$ docker run --rm -p 8899:8899 --ulimit nofile=700000 solanalabs/solana:beta $ docker run --rm -p 8899:8899 --ulimit nofile=1000000 solanalabs/solana:beta
``` ```
Run the latest edge image: Run the latest edge image:
```bash ```bash
$ docker run --rm -p 8899:8899 --ulimit nofile=700000 solanalabs/solana:edge $ docker run --rm -p 8899:8899 --ulimit nofile=1000000 solanalabs/solana:edge
``` ```
Port *8899* is the JSON RPC port, which is used by clients to communicate with the network. Port *8899* is the JSON RPC port, which is used by clients to communicate with the network.

View File

@ -93,7 +93,7 @@ fn tune_kernel_udp_buffers_and_vmmap() {
sysctl_write("net.core.wmem_default", "134217728"); sysctl_write("net.core.wmem_default", "134217728");
// increase mmap counts for many append_vecs // increase mmap counts for many append_vecs
sysctl_write("vm.max_map_count", "700000"); sysctl_write("vm.max_map_count", "1000000");
} }
#[cfg(unix)] #[cfg(unix)]