mikesart / inotify-info

Linux inotify info reporting app
MIT License
298 stars 31 forks source link

[GUIDE] Raising the INotify limits on your system! #57

Closed Arcitec closed 1 month ago

Arcitec commented 1 month ago

While waiting for GitKraken to fix their bug, I'm raising my limits since I am sure my computer can handle that.

This is how people can raise their max_user_instances limit if you want to. You can also use the same to raise max_user_watches if you prefer, but usually that one is so high that it's not a problem for you. The problem for me was that GitKraken registered so many instances that the default 128 limit was breached every time.

$ sysctl fs.inotify.max_user_instances
fs.inotify.max_user_instances = 128

# Write a persistent config change to the correct directory:
$ echo "fs.inotify.max_user_instances=384" | sudo tee /etc/sysctl.d/90-inotify_max_user_instances.conf
fs.inotify.max_user_instances=384

# Reload all system configs:
$ sudo sysctl --system
...
fs.inotify.max_user_instances = 384
...

$ sysctl fs.inotify.max_user_instances
fs.inotify.max_user_instances = 384