Increase inotify watches: Difference between revisions

From Strawberry Music Player Wiki
Jump to navigation Jump to search
(Created page with "On Linux, the collection watcher uses inotify to monitor any external changes to files, it is important to configure enough inotify watches. To prevent a situation where Strawberry fails to watch all directories, it is recommended to increase the default watches limit (to, say, 512K): Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. inotify-watch.conf) under /etc/sysctl.d/ directory: fs.inotify.max_user_watches = 524288 Then run t...")
 
No edit summary
 
Line 3: Line 3:
To prevent a situation where Strawberry fails to watch all directories, it is recommended to increase the default watches limit (to, say, 512K):
To prevent a situation where Strawberry fails to watch all directories, it is recommended to increase the default watches limit (to, say, 512K):


Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. inotify-watch.conf) under /etc/sysctl.d/ directory:
Add the following line to either /etc/sysctl.conf file or a new .conf file (e.g. inotify-watch.conf) under /etc/sysctl.d/ directory:


     fs.inotify.max_user_watches = 524288
     fs.inotify.max_user_watches = 524288

Latest revision as of 11:44, 2 May 2023

On Linux, the collection watcher uses inotify to monitor any external changes to files, it is important to configure enough inotify watches.

To prevent a situation where Strawberry fails to watch all directories, it is recommended to increase the default watches limit (to, say, 512K):

Add the following line to either /etc/sysctl.conf file or a new .conf file (e.g. inotify-watch.conf) under /etc/sysctl.d/ directory:

   fs.inotify.max_user_watches = 524288

Then run this command to apply the change:

   sudo sysctl -p --system


For more information see https://www.suse.com/support/kb/doc/?id=000020048