Re: reducing open calls in php
| From: | Brian Moon | Date: | Wed, 01 Feb 2006 22:13:56 +0000 |
| Subject: | Re: reducing open calls in php | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21756@lists.php.net to get a copy of this message | ||
Sascha Schumann wrote:
This explains why we did not get nearly the performance from APC that we did from eAccelerator. I thought it was odd. Brian.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. - SaschaOn 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