[Bug 258010] kqueue shortcoming for desktop usage

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 05 Jun 2023 07:21:21 UTC

Mark C <fbsd@peralex.com> changed:

           What    |Removed                     |Added
                 CC|                            |fbsd@peralex.com

--- Comment #4 from Mark C <fbsd@peralex.com> ---
This is an issue that I've been struggling with lately too, also with
syncthing.  The kqueue workaround works for smaller directory trees, but is
unworkable for large collections of files.  The number of file descriptors can
be increased, but with millions of files to watch, the system quickly becomes

There was at least one previous attempt to add inotify-type functionality to
FreeBSD in a GSoC project, but I don't know what happened with that:


A long-running discussion on the forums of the differences between inotify
(Linux), fsevents (Mac), and kqueue is here:


I also wonder if something could be implemented based on the existing audit
framework, which seems to allow file alterations to be watched, although it
doesn't have an easy API to use from code.

You are receiving this mail because:
You are on the CC list for the bug.