Impact of having a large number of open file descriptors
Ivan Voras
ivoras at freebsd.org
Wed May 28 13:05:15 UTC 2008
Hi,
Im thinking again of the old idea of implementing poor man's file
replication system using kqueue to monitor changes on files. This would
require opening every file that needs to be monitored and using
EVFILT_VNODE to monitor them. I suppose this would work for a small-ish
number of files like for a user's home directory but what about 100,000
files or millions of files?
One other question: do kqueue events "coalesce" in the sense that if N
operations happen (like write()s), there can be < N events passed to the
kqueue (NOTE_WRITE)?
While at it, will EVFILT_VNODE and NOTE_WRITE catch "additional" ways
the file can be modified, meaning mmap()?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080528/a8926c06/signature.pgp
More information about the freebsd-hackers
mailing list