You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8 comes with JIT optimization, but it is disabled by default. For enabling JIT, the opcache.jit_buffer_size option has to be set to some value (e.g. 256M).
Also opcache.jit in /etc/php/8.1/fpm/conf.d/10-opcache.ini must be set from off (apparently an Ubuntu 22.04 LTS default) to tracing (the PHP default, enables JIT).
Apparently there is no option yet for setting these options in Trellis/Ansible, it may be a good addition.
Summary
PHP
8
comes withJIT
optimization, but it is disabled by default. For enablingJIT
, theopcache.jit_buffer_size
option has to be set to some value (e.g.256M
).Also
opcache.jit
in/etc/php/8.1/fpm/conf.d/10-opcache.ini
must be set fromoff
(apparently an Ubuntu 22.04 LTS default) totracing
(the PHP default, enables JIT).Apparently there is no option yet for setting these options in Trellis/Ansible, it may be a good addition.
Additional context
https://stitcher.io/blog/php-8-jit-setup
https://medium.com/@edouard.courty/make-your-php-8-apps-twice-as-fast-opcache-jit-8d3542276595
The text was updated successfully, but these errors were encountered: