Increase inotify watches

From Strawberry Music Player Wiki
Revision as of 11:43, 2 May 2023 by Jonas (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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