Skip to content

Commit

Permalink
Merge branch 'main' into rtsainear-update-snapshot-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsainear authored Jul 9, 2024
2 parents 173ce41 + b42a2ba commit e0fddd7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/archival/hardware-archival.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This page covers the minimum and recommended hardware requirements for engaging
| Hardware | Recommended Specifications |
| -------------- | ----------------------------------------------------------------------- |
| CPU | 8-Core (16-Thread) Intel i7/Xeon or equivalent with AVX support |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX, SHA-NI |
| RAM | 24GB DDR4 |
| Hot Storage | 3 Terabyte SSD |
| Cold Storage | 40 Terabyte NON-SSD Persistent Disks |
Expand Down
7 changes: 4 additions & 3 deletions docs/rpc/hardware-rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ For testing your RPC once the node is fully sync'd, see [this example RPC reques

| Hardware | Recommended Specifications |
| -------------- |--------------------------------------------------------------------------|
| CPU | 8-Core (16-Thread) Intel i7/Xeon or equivalent with AVX support |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX |
| CPU | 8-Core (16-Thread) Intel i7/Xeon or equivalent |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX, SHA-NI |
| RAM | 20GB DDR4 |
| Storage | 1TB SSD (NVMe SSD is recommended. HDD will be enough for localnet only ) |

Expand All @@ -26,7 +26,8 @@ _Verify AVX support on Linux by issuing the command ```$ lscpu | grep -oh avx``

| Hardware | Minimal Specifications |
| -------------- |---------------------------------------------------------------------------|
| CPU | 8-Core (16-Thread) Intel i7/Xeon or equivalent with AVX support |
| CPU | 8-Core (16-Thread) Intel i7/Xeon or equivalent |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX, SHA-NI |
| RAM | 12GB DDR4 |
| Storage | 500GB SSD (NVMe SSD is recommended. HDD will be enough for localnet only) |

Expand Down
19 changes: 19 additions & 0 deletions docs/validator/compile-and-run-a-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@ If you are looking to learn how to compile and run a NEAR validator node nativel
$ apt update
$ apt install -y git binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev cmake gcc g++ python docker.io protobuf-compiler libssl-dev pkg-config clang llvm cargo awscli
```
### Network optimizations {#network-optimizations}
To optimize the network settings for better performance, execute the following commands:
```bash
MaxExpectedPathBDP=8388608
sudo sysctl -w net.core.rmem_max=$MaxExpectedPathBDP
sudo sysctl -w net.core.wmem_max=$MaxExpectedPathBDP
sudo sysctl -w net.ipv4.tcp_rmem="4096 87380 $MaxExpectedPathBDP"
sudo sysctl -w net.ipv4.tcp_wmem="4096 16384 $MaxExpectedPathBDP"
sudo sysctl -w net.ipv4.tcp_slow_start_after_idle=0
```

These changes do not persist across system restarts. To apply them automatically on boot, add the following in `/etc/sysctl.d/local.conf`:
```bash
net.core.rmem_max = 8388608
net.core.wmem_max = 8388608
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 16384 8388608
net.ipv4.tcp_slow_start_after_idle = 0
```

## How to use this document {#how-to-use-this-document}

Expand Down
8 changes: 4 additions & 4 deletions docs/validator/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ This page covers the minimum and recommended hardware requirements for engaging
| Hardware | Recommended Specifications |
| -------------- | --------------------------------------------------------------- |
| CPU | x86_64 (Intel, AMD) processor with at least 8 physical cores |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX, SHA-NI |
| RAM | 24GB DDR4 |
| Storage | 2TB SSD (NVMe SSD is recommended. HDD will be enough for localnet only) |

Verify CPU feature support by running the following command on Linux:

```
lscpu | grep -P '(?=.*avx )(?=.*sse4.2 )(?=.*cx16 )(?=.*popcnt )' > /dev/null \
lscpu | grep -P '(?=.*avx )(?=.*sse4.2 )(?=.*cx16 )(?=.*popcnt )(?=.*sha_ni )' > /dev/null \
&& echo "Supported" \
|| echo "Not supported"
```
Expand All @@ -31,14 +31,14 @@ lscpu | grep -P '(?=.*avx )(?=.*sse4.2 )(?=.*cx16 )(?=.*popcnt )' > /dev/null \
| Hardware | Minimal Specifications |
| -------------- | --------------------------------------------------------------- |
| CPU | x86_64 (Intel, AMD) processor with at least 8 physical cores |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX |
| CPU Features | CMPXCHG16B, POPCNT, SSE4.1, SSE4.2, AVX, SHA-NI |
| RAM | 16GB DDR4 |
| Storage | 1TB SSD (NVMe SSD is recommended. HDD will be enough for localnet only) |

Verify CPU feature support by running the following command on Linux:

```
lscpu | grep -P '(?=.*avx )(?=.*sse4.2 )(?=.*cx16 )(?=.*popcnt )' > /dev/null \
lscpu | grep -P '(?=.*avx )(?=.*sse4.2 )(?=.*cx16 )(?=.*popcnt )(?=.*sha_ni )' > /dev/null \
&& echo "Supported" \
|| echo "Not supported"
```
Expand Down

0 comments on commit e0fddd7

Please sign in to comment.