Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Add a ramdisk section to the validator start guide (#13927)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5bfe93e)

Co-authored-by: Michael Vines <mvines@gmail.com>
  • Loading branch information
mergify[bot] and mvines authored Dec 2, 2020
1 parent 9899e6f commit 4431589
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/src/running-validator/validator-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,18 @@ systemctl restart logrotate.service
Once your validator is operating normally, you can reduce the time it takes to
restart your validator by adding the `--no-port-check` flag to your
`solana-validator` command-line.

### Using a ramdisk for the accounts database to reduce SSD wear
If your machine has plenty of RAM, a ramdisk
([tmpfs](https://man7.org/linux/man-pages/man5/tmpfs.5.html)) may be used to hold
the accounts database.

Assuming your tmpfs ramdisk is mounted at `/mnt/solana-accounts` and writable
by the validator user, add the `--accounts /mnt/solana-accounts` argument to
your validator command-line to use it. Once your validator restarts, you should
now see activity in `/mnt/solana-accounts` instead of the `accounts/`
subdirectory of your ledger (`--ledger` argument) directory.

For Mainnet Beta it's recommended that a ramdisk of 64GB be used. Note that if
your machine has less than 100GB of RAM in total, using a ramdisk is not
recommended.

0 comments on commit 4431589

Please sign in to comment.