Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2008 14:36:33 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Impact of having a large number of open file descriptors
Message-ID:  <g1jjki$6lc$1@ger.gmane.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC95AF5E91E39B4F62DCFA8C1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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()?


--------------enigC95AF5E91E39B4F62DCFA8C1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIPVHRldnAQVacBcgRApuWAJ4trf/Hfti+FUCLRTFA6Gub8pBtbwCg6hsB
hdEBNMuxNHiZw9Fi0By/HsA=
=1uvQ
-----END PGP SIGNATURE-----

--------------enigC95AF5E91E39B4F62DCFA8C1--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?g1jjki$6lc$1>