arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
Merge pull request #482 from hermeznetwork/feature/document

Document that /tmp should be mounted as tmpfs
arnau 17317030+arnaucube@users.noreply.github.com
Wed, 13 Jan 2021 16:11:58 +0100
commit

84eff53691a777ef389203362b5adbd8963596ff

parent

6651df1e522a4946c0abf9ec10dc8ef794b862df

1 files changed, 15 insertions(+), 0 deletions(-)

jump to
M README.md → README.md

@@ -30,3 +30,18 @@

``` golangci-lint run --timeout=5m -E whitespace -E gosec -E gci -E misspell -E gomnd -E gofmt -E goimports -E golint --exclude-use-default=false --max-same-issues 0 ``` + +## Usage Details + +### `/tmp` as tmpfs + +For every processed batch, the node builds a temporary exit tree in a key-value +DB stored in `/tmp`. It is highly recommended that `/tmp` is mounted as a RAM +file system in production to avoid unecessary reads an writes to disk. This +can be done by mounting `/tmp` as tmpfs; for example, by having this line in +`/etc/fstab`: +``` +tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 +``` + +