Re: Limit on kevent entries?
Re: Limit on kevent entries?
- Subject: Re: Limit on kevent entries?
- From: Michael Smith <email@hidden>
- Date: Thu, 12 Oct 2006 12:18:46 -0700
On Oct 12, 2006, at 12:02 PM, maurits <email@hidden
wrote:
Dear darwin-dev list,
is there a limit on the number of files one can simultaneously
monitor with the kevent mechanism? Basically, I want to monitor if a
file has changed, for potentially hundreds or even thousands of
files.
kevent is not suitable for this.
Apart from the technique discussed in Amit's book, you might also want
to consider using the kauth FILEOP scope. This will require that you
write
some kernel code and come up with a matching and queueing mechanism for
notifications that is efficient (because you are called on the hot
path),
but it's a precise mechanism that is available in 10.4, and which was
developed for this specific reason.
There are other mechanisms in the pipeline that improve the developer
experience, but this is your best option for now.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden