Comments (3)
Hi Terry,
You probably missed something, but O+ already overrides zend_stream_open() and zend_resolve_path() and eliminates almost all syscalls. You can see strace output for a second request for a script that includes two other files through include_once() (PHP-5.5, FastCGI sapi).
accept(4, {sa_family=AF_FILE, NULL}, [2]) = 5
poll([{fd=5, events=POLLIN}], 1, 5000) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\1\334l\0\10\0\0", 8) = 8
read(5, "\0\1\0\0\0\0\0\0", 8) = 8
read(5, "\1\4\334l\2t\4\0", 8) = 8
read(5, "\r\30DOCUMENT_ROOT/usr/local/apache"..., 632) = 632
read(5, "\1\4\334l\0\0\0\0", 8) = 8
time(NULL) = 1362502136
gettimeofday({1362502136, 602388}, NULL) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={600, 0}}, NULL) = 0
rt_sigaction(SIGPROF, {0x8384ae0, [PROF], SA_RESTART}, {0x8384ae0, [PROF], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
getcwd("/home/dmitry/php/php5.5/CGI-RELEASE", 4095) = 36
chdir("/usr/local/apache/htdocs/test") = 0
fcntl64(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=1, len=1}) = 0
getcwd("/var/www/html/test", 4096) = 19
chdir("/home/dmitry/php/php5.5/CGI-RELEASE") = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
fcntl64(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
write(5, "\1\6\334l\0D\4\0X-Powered-By: PHP/5.5.0-"..., 96) = 96
shutdown(5, SHUT_WR) = 0
recv(5, "\1\5\334l\0\0\0\0", 8, 0) = 8
close(5) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
No open(), no even stat().
Thanks. Dmitry.
from zendoptimizerplus.
:oops: I am still working statically 'cos I am setting up to refactor in my CLI / CGI changes in a test fork with a view to offering them back once shaken down. I am still feeling my way around the code. I should have checked, of course. At least I suggested the solution that you guys have already implemented. :-(
Sorry Dmitry. Durrrhhh.
from zendoptimizerplus.
no problem, you are welcome with ideas :)
from zendoptimizerplus.
Related Issues (20)
- Failed to compile on PHP 5.6 HOT 3
- Opcache crashed with PHP7 HOT 6
- current_wasted_percentage > max, restart_pending=1 but no restart HOT 4
- Error for make HOT 3
- No support for mod-itk? HOT 3
- the same cached and misses files bug HOT 11
- E_WARNING: Cannot modify header information - headers already sent by
- opcache_enabled automatically turns false HOT 2
- pfsockopen - when using opcache ,pfsockopen returns empty when server initiative to disconnect the current connection HOT 1
- 2 different files required w/ same relative path resolve to one file HOT 1
- Don't 7.0.5 work on PHP 5.4.45 ?
- OpCache Constantly Restarting Itself
- Php 7.0.19 call to undefined function exception despite defined
- Frequent PHP errors
- PHP 5.2 with OPcache and ZendOptimizer v.3.3
- Using opcache in command line HOT 1
- Feature request: opcache_evict HOT 1
- How to serialize op_array ?
- Opcache optimisation
- zend_compile_file use of uninitialized memory on second request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zendoptimizerplus.