Added inotify instance limit info

This commit is contained in:
Šimon Brandner 2020-11-23 08:45:21 +01:00
parent b506d418ea
commit ab95183e4f

View File

@ -275,22 +275,29 @@ modifying it. See the [configuration docs](docs/config.md) for details.
Open http://127.0.0.1:8080/ in your browser to see your newly built Element. Open http://127.0.0.1:8080/ in your browser to see your newly built Element.
**Note**: The build script uses inotify by default on Linux to monitor directories **Note**: The build script uses inotify by default on Linux to monitor directories
for changes. If the inotify watch limit is too low your build will silently fail. for changes. If the inotify limits are too low your build will fail silently or with
To avoid this issue, we recommend a limit of at least 128M. `Error: EMFILE: too many open files`. To avoid these issues, we recommend a watch limit
of at least `128M` and instance limit around `512`.
To set a new inotify watch limit, execute: Linked issues are [#15750](https://github.com/vector-im/element-web/issues/15750) and
[#15774](https://github.com/vector-im/element-web/issues/15774).
To set a new inotify watch and instance limit, execute:
``` ```
$ sudo sysctl fs.inotify.max_user_watches=131072 sudo sysctl fs.inotify.max_user_watches=131072
$ sudo sysctl -p sudo sysctl fs.inotify.max_user_instances=512
sudo sysctl -p
``` ```
If you wish, you can make this new limit permanent, by executing: If you wish, you can make the new limits permanent, by executing:
``` ```
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p echo fs.inotify.max_user_instances=512 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
``` ```
___ ___
When you make changes to `matrix-react-sdk` or `matrix-js-sdk` they should be When you make changes to `matrix-react-sdk` or `matrix-js-sdk` they should be