sysctl.si › Parameters › fs.inotify.max_user_instances
fs.inotify.max_user_instances
Inotify instances per user.
- Default
- 128
- Typical value
- 1024 or more
When to change it
Raise it when many tools or containers run file watchers under the same user.
Check the current value
sysctl fs.inotify.max_user_instances
Change it until the next reboot
sudo sysctl -w fs.inotify.max_user_instances=1024
Make it permanent
echo "fs.inotify.max_user_instances = 1024" | sudo tee /etc/sysctl.d/99-custom.conf sudo sysctl --system
Related parameters
fs.file-max · fs.inotify.max_user_watches
Generate a full sysctl config for your server
Values are starting points. Test on a staging machine and measure before and after.