stevecrozz Posted August 11, 2013 Report Share Posted August 11, 2013 When I start btsync, it very quickly exausts my system's maximum number of inotify watches. I only have a single shared folder, so I would expect btsync to use just one inotify watch and not ~25,000. It's not the end of the world, but it would be nice if btsync was a little friendlier because I like using inotify for other purposes (tail -f for instance). When I try to use tail -f, it warns me saying:tail: inotify resources exhaustedtail: inotify cannot be used, reverting to pollingIs there something I can do to tell btsync to stop hogging all the inotify watches? Quote Link to comment Share on other sites More sharing options...
nop Posted August 12, 2013 Report Share Posted August 12, 2013 Are you sure that all inotify watches are taken by btsync?Here is a good solution to find out who is taking all inotify watches: http://unix.stackexchange.com/a/62284 Quote Link to comment Share on other sites More sharing options...
stevecrozz Posted August 12, 2013 Author Report Share Posted August 12, 2013 That's exactly the method I was using to find out who was using all my inotify watches. The total number of inotify watches went from a few dozen to ~25,000 after starting btsync.That combined with the fact that I can always get an inotify watch when I'm not running btsync, and I can never get one when I am running btsync makes me pretty certain the culprit is btsync. Quote Link to comment Share on other sites More sharing options...
kos13 Posted August 13, 2013 Report Share Posted August 13, 2013 Could you please follow the steps from here - and refer to this post?We will need logs to understand what is happening. Quote Link to comment Share on other sites More sharing options...
stevecrozz Posted August 13, 2013 Author Report Share Posted August 13, 2013 Yep. I can certainly go through the regular support channel. Although I've learned a bit more about how inotify works and it seems normal that you need one inotify watch per directory even if all the directories have the same parent.From inotify's man page:Inotify monitoring of directories is not recursive: to monitor subdirectories under a directory, additional watches must be created.I think btsync's own log file is telling me when it can and can't add an inotify watch with the phrases "Added path" and "Error while adding watch for ... errno=28". The numbers do seem to add up to what I expected:/opt/btsync$ grep "Added path" < .sync/sync.log | wc -l8032/opt/btsync$ grep "Error while adding watch for" < .sync/sync.log | wc -l19447Maybe the fix is to just increase the maximum number of inotify watches allowed on my system. Although one thing I have noticed here is that btsync does seem to be adding watches for subdirectories of folders that I've explicitly ignored.I'll go ahead and send my log files over the support channel. I may have a few other support requests to file anyway. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.