Public bug reported:

Since upgrading to Ubuntu 24.04 I have been seeing `Failed to add a
watch for /run/systemd/ask-password: inotify watch limit reached`.  Even
when I added `fs.inotify.max_user_watches=1048576` to
`/etc/sysctl.conf`, I would still get the error and `cat
/proc/sys/fs/inotify/max_user_watches` always returned 65536.

After some investigation I found that
`/usr/lib/sysctl.d/30-tracker.conf` sets max user watches to 65536.
This setting is loaded after the setting in `sysctl.conf`, which caused
my confusion.  Notably, this limit is fairly low for modern systems, see
this post in which common software like VSCode needs almost 10x as many:
https://github.com/torvalds/linux/commit/92890123749bafc317bbfacbe0a62ce08d78efb7

** Affects: tracker-miners (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to tracker-miners in Ubuntu.
https://bugs.launchpad.net/bugs/2085166

Title:
  inotify watch limit set too low by tracker

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tracker-miners/+bug/2085166/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to