Skip to content

Commit e03f459

Browse files
committed
Solana: updates after testing Extended RPC nodes
1 parent 3dce419 commit e03f459

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

lib/solana/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,31 @@ The result should be like this (the actual balance might change):
265265
#Delete key pair from the local file system
266266
rm -rf /tmp/keypair.json
267267

268+
```
269+
5. How can I add swap space to the instance if my Solana node runs out of RAM during the initial sync?
270+
271+
There are two ways. Using the existing volume or using a new one. If your instance has Instance Store volume attached, it is better to keep your swap on it.
272+
273+
- Option 1: Dedicated Instance Store volume
274+
275+
```bash
276+
sudo mkswap /dev/nvme3n1
277+
sudo swapon /dev/nvme3n1
278+
# Check the memory space is updated
279+
free -g
280+
```
281+
282+
- Option 2: Existing volume (using Data directory as example):
283+
284+
```bash
285+
sudo mkdir /var/solana/data/swapfile
286+
sudo dd if=/dev/zero of=/var/solana/data/swapfile bs=1MiB count=250KiB
287+
sudo chmod 0600 /var/solana/data/swapfile
288+
sudo mkswap /var/solana/data/swapfile
289+
sudo swapon /var/solana/data/swapfile
290+
free -g
291+
sudo sysctl vm.swappiness=10
292+
268293
```
269294

270295
## Upgrades

0 commit comments

Comments
 (0)