Skip to content

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

Open
@dhs-rec

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions