Vagga sometimes hints and if permitted can tune few options on a host system. This is the reference of the options that vagga can fix.
auto-apply-sysctl for a table of options and limits.
It’s very useful for the following things:
- Run processes with automatic restart on reload
- Run build system and automatically rebuild on file change
- Start unit tests on each file change
Unfortunately on some systems (namely ubuntu xenial, docker on mac) it’s very
common to have a limit of
8192 inotify watches. Which is too slow on some
The error is manifested as:
inotify watch limit reached
No space left on device(yes, this is not a typo)
Internal watch failed: watch ENOSPC
- Some programs just crash (see #291)
Tuning it is usually harmless unless the value is too large. Each user watch takes up to 1080 bytes. So values up to 512K are fine on most current systems.
To tune it (temporarily) you need to run:
sudo sysctl fs.inotify.max_user_watches=524288
To store for the next reboot you may try to add
sudo sysctl -w fs.inotify.max_user_watches=524288
But it doesn’t work for some linux distributions (hello, NixOS)
Alternatively, you may set
auto-apply-sysctl. This tells vagga to
sudo -k sysctl ... on your behalf (probably asking for a