atte

linux: inotify + max_user_watches

Recommended Posts

Hi

I stumbled across these posts today:

http://askubuntu.com...ax-user-watches

http://paulphilippov...filesystem.html

http://blog.foogaro....ng-problem.html

Basically: as default most (my) linux systems are limited as to the number of "watches in inotify", one of my boxes had it set to 8192.

To find out your current setting:


cat /proc/sys/fs/inotify/max_user_watches

To change to something big:


sudo echo 1000000 >> /etc/sysctl.conf

All this is fine. My question, however, is: how does all this affect the way btsync runs? From reading about the lack of instant sync on BSD, it seems btsync relies on inotify to keep track of local changes that should be synced to connected boxes, so I guess it should have some impact...

Share this post


Link to post
Share on other sites

I'm pretty sure this is wrong:


sudo echo 1000000 >> /etc/sysctl.conf

You're just inserting a number in there but it needs to be attached to max_user_watches...

Follow-up question: is btsync really using inotify? In that case I guess I need to know more about it since I use inotify for another tool on my server too and that uses most of my user_watches.

Share this post


Link to post
Share on other sites

Off course, I messed it up, should have been:


sudo echo fs.inotify.max_user_watches=1000000 >> /etc/sysctl.conf

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.