Sunday, 11 August 2013

How do I configure fsnotify's queue size/watch limit on OSX?

How do I configure fsnotify's queue size/watch limit on OSX?

Note: This might be a StackOverflow question, since it's about something
that's only accessible via the internal API on OSX, but I'm posting it
here since it seems to be more about using a tool that's already available
than about programming for it.
Question: I've been using lsyncd (with the fsnotify backend, not inotify)
to watch filesystem events on OSX. I've been getting a lot of OVERFLOW
events, since I'm handing it a rather large number of high-volatility
files.
How do I configure the maximum internal queue size for fsnotify on OSX
10.8 Mountain Lion (or any other version, really)? On inotify/Linux, I'd
use /proc/sys/fs/inotify/max_user_watches, but I'm stumped on how to
configure this using fsnotify, and on OSX.
If I really must, I can recompile the kernel with some baked-in arcana to
configure the number higher, but I'd prefer to avoid that if possible.

No comments:

Post a Comment