On 12/18/05, David Chisnall <[EMAIL PROTECTED]> wrote: > I had a look at this about a year ago. KQueue/KEvent on Free/NetBSD > allowed you to watch a single file / folder, but this limited you to > 1024 watched files per process (each file required an open file > descriptor). > Linux had inotify, which had the same limitation.
This isn't entirely correct. The problem is not with kqueue(2) but select(2) due to the limited default setting of FD_SETSIZE, which is 1024. Of course, this CAN be increased by modifying FD_SETSIZE to a larger number. The largest issue regarding kqueue(2) is that it's not multiprocessor-safe... but that has been addressed in FreeBSD 5.3 RELEASE. -- Chris
