How can I tell if I am out of inotify watches?
- by Jorge Castro
I use an application that consumes inotify watches. I've already set
fs.inotify.max_user_watches=32768
in /etc/sysctl.conf but last night the application stopped indexing unless I ran it manually, which leads me to suspect I am out of watches.
Since I don't know what the trade off is when I increase this number (does it consume more RAM?), I don't know if I should just increase this number, so I'd like to know if there's a way I can tell if it's using all these watches and what the tradeoffs might be for increasing it.