News for hackers. Stuff that matters.
Re:Debian developer prompted to revisit FreeBSD after 20 years by throwabob214 on Tuesday February 17, 2015 @07:31PM (#9066225)
> With inotify i use one watch per-folder, with kqueue you need to do it by file ( of course you can watch the folder changes, but you need to keep a copy of the file states in that folder, and then re-stat that files to find out what file was changed, not even close to an ideal solution ). So for example in my use case with inotify i can watch 65536 folders, and with kqueue less than 10000 files ( that could be a single folder! ).

Ah, I looked at inotify API briefly and did not notice that directory watches return file changes. That does make it easier to use than kevent vnode watches. Mea culpa.

There are no comments on this comment yet.