On 9/11/07, Pierre <[EMAIL PROTECTED]> wrote:
> On 9/11/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> > > well, some OSes allow subscribing to the notifications from filesystem
> > > *bsd (including macos-x) use kqueue, linux and winnt have different
> > > mechanisms for the same thing
> >
> > The question is how expensive are those notifications - i.e. if one has
> > 1000 of them, will it be a trouble for the OS?
>
> It is not really related to the stat cache but it may need a
> clarification. The ini cache works on per directory basis and caches
> the entries found in the current dir and the parent directories.
>
> Once the TTL is over, it will check if there is a file in the current
> dir and its parent directory (until docroot), just like htaccess.
> Having this TTL reduces the performance impact drastically. For
> example, htscanner has it set to 5mins by default. For what I heard,
> many ISPs kept this default.

kqueue and "friends" allow you to skip that TTL part alltogether, as
PHP can just register itself as a subscriber to filesystem events in
related directories. If it notices that the file appeared or
disappeared or changed it can react immediately, while still not
making any "active" checks

but, as Stanislav mentioned, we should check how difficult it would be
for the OS to send those notifications

-- 
Alexey Zakhlestin
http://blog.milkfarmsoft.com/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to