My hard drive is full when running solana-test-validator. I run it on wsl2 on window. Has anyone had this problem and how to fix it? Thanks
1 Answer
You can use the --limit-ledger-size
argument to solana-test-validator
. Here's the help text:
--limit-ledger-size <SHRED_COUNT>
Keep this amount of shreds in root slots. [default: 10000]
Shreds are roughly 1kb, so the default should use up to ~10MB. Otherwise, the account data itself will also take up space, so be sure to avoid using too many large accounts.
-
1btw currently the default is 200m github.com/anza-xyz/agave/blob/…– RisinekCommented Nov 29 at 18:47
-
Thanks for adding that info. Note that number is the default for a full validator -- the test validator is still set to 10k: github.com/anza-xyz/agave/blob/…– Jon CCommented Nov 30 at 11:08