Add instructions for increasing swap space

This commit is contained in:
Patrick O'Grady 2020-10-16 08:06:13 -07:00
parent 4fa7f1f459
commit 7487bf091f
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85

View file

@ -108,8 +108,10 @@ with the command: `ulimit -n 100000`.
### Memory-Mapped Files ### Memory-Mapped Files
`rosetta-bitcoin` uses [memory-mapped files](https://en.wikipedia.org/wiki/Memory-mapped_file) to `rosetta-bitcoin` uses [memory-mapped files](https://en.wikipedia.org/wiki/Memory-mapped_file) to
persist data in the `indexer`. As a result, you **must** run `rosetta-bitcoin` on a 64-bit persist data in the `indexer`. As a result, you **must** run `rosetta-bitcoin` on a 64-bit
architecture (the virtual address space easily exceeds 100s of GBs) and may need to increase the architecture (the virtual address space easily exceeds 100s of GBs).
allocated size of swap space to avoid a kernel OOM.
If you receive a kernel OOM, you may need to increase the allocated size of swap space
on your OS. There is a great tutorial for how to do this on Linux [here](https://linuxize.com/post/create-a-linux-swap-file/).
## Architecture ## Architecture
`rosetta-bitcoin` uses the `syncer`, `storage`, `parser`, and `server` package `rosetta-bitcoin` uses the `syncer`, `storage`, `parser`, and `server` package