Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32279 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19208 invoked by uid 1010); 12 Sep 2007 06:32:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19193 invoked from network); 12 Sep 2007 06:32:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2007 06:32:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.238 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.184.238 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.238] ([64.233.184.238:61812] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/48-57702-8E787E64 for ; Wed, 12 Sep 2007 02:32:08 -0400 Received: by wr-out-0506.google.com with SMTP id 58so46077wri for ; Tue, 11 Sep 2007 23:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=1oGARzmYMHaiSeVM4gbPxLxM4FuUYcMU5lSXqlcskgA=; b=X5BZZI04quKcXP8yz6ppU0hyLjKSwG4xHGeH9ArwnSAJmYTRHMXf3jjNhr+ANqZV9Thg7B3zGETVMnNSPtd3E4za6xnFLVeE+NhF5Pi6JleLQ2AQU1P9hh9/3R+8Fd+cSO+CzEpYtVlGBg/uuNl25jPl8Exnod/BUO89jGQmiMY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ut39IQQeAnPKQ4uhMzgU/pbomSr6bxlqbJgCsoV8Wf8GFE9c6MUTBeMC8ZHkf2K+2mu/OWzt7D8UaxgZVXTRXxYsHQETNPyL8mEWp28u8glT0KYYY2rS3Zf45P2QziY/xLg3gcDavh00VvVPJnakNxz0E0xDJKyf1J8xCN/VUAg= Received: by 10.90.118.12 with SMTP id q12mr745956agc.1189578725463; Tue, 11 Sep 2007 23:32:05 -0700 (PDT) Received: by 10.90.90.17 with HTTP; Tue, 11 Sep 2007 23:32:05 -0700 (PDT) Message-ID: Date: Wed, 12 Sep 2007 10:32:05 +0400 To: Pierre Cc: "Stanislav Malyshev" , jani.taskinen@iki.fi, "Andi Gutmans" , "Ilia Alshanetsky" , "PHP Developers Mailing List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46E6C3A6.7070309@zend.com> Subject: Re: [PHP-DEV] new ini parser, caching From: indeyets@gmail.com ("Alexey Zakhlestin") On 9/11/07, Pierre wrote: > On 9/11/07, Stanislav Malyshev 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/