Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme tells users to provide a way too high value for fs.inotify.max_user_watches #568

Open
dhs-rec opened this issue Jan 20, 2023 · 0 comments

Comments

@dhs-rec
Copy link

dhs-rec commented Jan 20, 2023

The readme instructs people to increase the user watches to 524288 which is 64 times higher than the default value, which is set to 8192 for a reason.

Each watch consumes 1080 bytes of kernel memory on a 64-bit system. Setting the limit to such a high number would allow EACH USER on the system to potentially allocate number of watches * 1080 bytes of memory.

With the proposed value, this sums up to 540MB each user on the system could allocate, just for filesystem watches.

It would be better to tell people to increase the value in small steps until things start to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant