When I started nodeos, I got:
CHAINBASE: Failed to pin chainbase shared memory (of size 1024 MB) in RAM. Performance degradation is possible.
Memory is enough(more than 6GB available), so why is this? And what can I do?
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.Sign up to join this community
TL;DR: Using docker
cap_add option to add
IPC_LOCK privilege resolves this issue.
This is actually a docker-related question.
Process in docker container needs
IPC_LOCK privilege to pin memory, which means prohibiting its memory page being swapped into swap.
More info: #4632