Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21756 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47804 invoked by uid 1010); 1 Feb 2006 22:14:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47788 invoked from network); 1 Feb 2006 22:14:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2006 22:14:00 -0000 X-Host-Fingerprint: 129.41.69.185 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from ([129.41.69.185:14260] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 11/32-23224-8A231E34 for ; Wed, 01 Feb 2006 17:14:00 -0500 Received: (qmail 31597 invoked from network); 1 Feb 2006 17:13:56 -0500 Received: from unknown (HELO ?10.1.6.4?) (10.1.6.4) by 10.1.1.24 with SMTP; 1 Feb 2006 17:13:56 -0500 Message-ID: <43E132A4.40600@dealnews.com> Date: Wed, 01 Feb 2006 16:13:56 -0600 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Sascha Schumann CC: Rasmus Lerdorf , jluedke@concentric.com, internals@lists.php.net References: <200602011939.OAA10156@alexander.concentric.com> <43E1143C.7080407@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] reducing open calls in php From: brianm@dealnews.com (Brian Moon) Sascha Schumann wrote: > Or simply use eAccelerator which does not cause those open > calls. > > Rasmus, is that behaviour by design? I deinstalled APC > because of this 'characteristic' last week. It was killing a > high-traffic site. > > - Sascha > > On Thu, 2 Feb 2006, Rasmus Lerdorf wrote: > >> I think the main hint you need is to never use require_once/include_once with >> an opcode cache. Those are the only ones that will cause an open() call. You >> should only be seeing a single stat() call per file under APC (needed to get >> the inode+device hash key for the shared memory lookup). >> >> -Rasmus This explains why we did not get nearly the performance from APC that we did from eAccelerator. I thought it was odd. Brian.