JIT?


Improve CPU cache usage



<?php
$a 
= [];
for(
$i=0$i 100000;$i++) {
    
$a[] = ['abc','def','ghi','jkl','mno','pqr'];
}
echo 
memory_get_usage(true);

// PHP 5.x  109M
// PHP 7.0   42M no opcache
// PHP 7.0    6M with opcache enabled


HugePage support in Opcache

./configure --enable-huge-code-pages
opcache.memory_consumption=256
opcache.huge_code_pages=1
% sysctl -w vm.nr_hugepages=256
% service php-fpm start
% cat /proc/meminfo | grep Huge
HugePages_Total:     256
HugePages_Free:      231
HugePages_Rsvd:      119
HugePages_Surp:        0
Hugepagesize:       2048 kB

JIT?