]> granicus.if.org Git - php/commit
Added an experemental ability to move PHP code pages (PHP TEXT segment) into HUGE...
authorDmitry Stogov <dmitry@zend.com>
Mon, 14 Sep 2015 10:34:17 +0000 (13:34 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 14 Sep 2015 10:34:17 +0000 (13:34 +0300)
commit669f0b39b184593e01e677360fd79b2b63058ca0
tree2a96934d6bb50c0bbb146371e73f82984e18a5b8
parent145708b658d0a60b738dde1a942dea9032f2f54e
Added an experemental ability to move PHP code pages (PHP TEXT segment) into HUGE pages.
PHP should be configured and built with --enable-huge-code-pages, OS should be configured to provide huge pages.
It's possible to enable/disable this future in php.ini through opcache.enable_huge_code_pages=0/1.
The feature was tested on Linux and provided 2% improvement on real-life apps, because of 2-3 times reduction in number of iTLB misses.
ext/opcache/ZendAccelerator.c
ext/opcache/ZendAccelerator.h
ext/opcache/config.m4
ext/opcache/zend_accelerator_module.c