• Save
PHP 5.5 Zend OPcache
Upcoming SlideShare
Loading in...5
×
 

PHP 5.5 Zend OPcache

on

  • 23,514 views

 

Statistics

Views

Total Views
23,514
Views on SlideShare
7,643
Embed Views
15,871

Actions

Likes
8
Downloads
0
Comments
0

28 Embeds 15,871

http://www.1x1.jp 13842
http://takeshiyako.blogspot.jp 1828
http://takeshiyako.blogspot.com 45
http://58.157.32.88 43
http://sinka.gob.jp 28
http://takeshiyako.blogspot.kr 23
http://webcache.googleusercontent.com 17
http://takeshiyako.blogspot.sg 6
http://takeshiyako.blogspot.tw 4
http://takeshiyako.blogspot.de 4
http://takeshiyako.blogspot.com.au 3
http://takeshiyako.blogspot.mx 3
http://translate.googleusercontent.com 3
http://takeshiyako.blogspot.in 3
https://twitter.com 3
http://takeshiyako.blogspot.fr 3
http://takeshiyako.blogspot.com.es 2
http://takeshiyako.blogspot.co.uk 2
http://takeshiyako.blogspot.ca 2
http://takeshiyako.blogspot.nl 2
http://cache.yahoofs.jp 1
http://takeshiyako.blogspot.ru 1
http://takeshiyako.blogspot.co.il 1
http://takeshiyako.blogspot.dk 1
http://takeshiyako.blogspot.gr 1
http://takeshiyako.blogspot.hk 1
http://takeshiyako.blogspot.be 1
http://takeshiyako.blogspot.it 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    PHP 5.5 Zend OPcache PHP 5.5 Zend OPcache Presentation Transcript

    • 2013/04/26 @shin1x16th Kansai PHP StudyPHP5.5Zend OPcache
    • @shin1x1(c) 2013 Masashi Shinbara @shin1x1http://www.1x1.jp/blog/https://github.com/shin1x1PHP / DevOps / AWS /Varnish / Fabric / Chef
    • Agenda(c) 2013 Masashi Shinbara @shin1x11. PHP5.5 beta4 install2. Zend OPcache3. Benchmark4. Data Cache
    • PHP5.5 beta4 install(c) 2013 Masashi Shinbara @shin1x1
    • PHP5.5 beta4 install(c) 2013 Masashi Shinbara @shin1x1# for RHEL6 / CentOS6$ sudo yum install httpd-devel libxml2-devel# for extract .xz file$ sudo yum insall xz
    • PHP5.5 beta4 install(c) 2013 Masashi Shinbara @shin1x1$ curl -OL http://downloads.php.net/dsp/php-5.5.0beta4.tar.xz$ tar xvf php-5.5.0beta4.tar.xz$ cd php-5.5.0beta4$ ./configure --enable-mbstring --with-apxs2$ make$ sudo make install
    • PHP5.5 beta4 install(c) 2013 Masashi Shinbara @shin1x1$ php -vPHP 5.5.0beta4 (cli) (built: Apr 25 201321:21:51)Copyright (c) 1997-2013 The PHP GroupZend Engine v2.5.0-dev, Copyright (c)1998-2013 Zend Technologies
    • Zend OPcache(c) 2013 Masashi Shinbara @shin1x1
    • Zend OPcache(c) 2013 Masashi Shinbara @shin1x1•aka Zend Optimizer+https://github.com/zend-dev/ZendOptimizerPlus•opcode cache•opcode optimization•no user data cache
    • Zend OPcache(c) 2013 Masashi Shinbara @shin1x1$ sudo cp -a php.ini-production /usr/local/lib/php.ini$ sudo echo "zend_extension=opcache.so">> /usr/local/lib/php.ini
    • Zend OPcache(c) 2013 Masashi Shinbara @shin1x1$ php -vPHP 5.5.0beta4 (cli) (built: Apr 26 201313:26:28)Copyright (c) 1997-2013 The PHP GroupZend Engine v2.5.0-dev, Copyright (c)1998-2013 Zend Technologieswith Zend OPcache v7.0.2-dev,Copyright (c) 1999-2013, by ZendTechnologies
    • Zend OPcache(c) 2013 Masashi Shinbara @shin1x1$ php -i | grep -i opcacheopcache.blacklist_filename => no value => no valueopcache.consistency_checks => 0 => 0opcache.dups_fix => Off => Offopcache.enable => On => Onopcache.enable_cli => Off => Offopcache.enable_file_override => Off => Offopcache.error_log => no value => no valueopcache.fast_shutdown => 0 => 0opcache.force_restart_timeout => 180 => 180opcache.inherited_hack => On => Onopcache.interned_strings_buffer => 4 => 4opcache.load_comments => 1 => 1opcache.log_verbosity_level => 1 => 1opcache.max_accelerated_files => 2000 => 2000....
    • Zend OPcache(c) 2013 Masashi Shinbara @shin1x1https://github.com/zend-dev/ZendOptimizerPlus
    • Benchmark(c) 2013 Masashi Shinbara @shin1x1
    • Benchmark(c) 2013 Masashi Shinbara @shin1x1<?phpclass HelloController extends AppController {  public $uses = array();  public function index() {    var_dump("Hello");    exit;  }}•CakePHP 2.3.2
    • Benchmark(c) 2013 Masashi Shinbara @shin1x1$ ab -c 50 -n 1000 http://localhost/hello•CakePHP 2.3.2
    • Benchmark(c) 2013 Masashi Shinbara @shin1x1•Zend OPcache offRequests per second: 41.05 [#/sec]
    • Benchmark(c) 2013 Masashi Shinbara @shin1x1•Zend OPcache offRequests per second:270.55 [#/sec]•Zend OPcache onRequests per second: 41.05 [#/sec]
    • Data Cache(c) 2013 Masashi Shinbara @shin1x1
    • APCu(c) 2013 Masashi Shinbara @shin1x1•APCu - APC User Cachehttps://github.com/krakjoe/apcuhttp://pecl.php.net/package/APCu
    • Yac(c) 2013 Masashi Shinbara @shin1x1•Yac(Yet Another Cache)https://github.com/laruence/yachttp://www.laruence.com/2013/03/18/2846.html?
    • Summary(c) 2013 Masashi Shinbara @shin1x1•Zend OPcache が標準バンドル•php.ini で設定が必要(beta4時点)•データストアは別拡張で
    • @shin1x1(c) 2013 Masashi Shinbara @shin1x1