Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8: Enable JIT (PHP INI option) #1504

Closed
strarsis opened this issue Oct 1, 2023 · 4 comments
Closed

PHP 8: Enable JIT (PHP INI option) #1504

strarsis opened this issue Oct 1, 2023 · 4 comments

Comments

@strarsis
Copy link
Contributor

strarsis commented Oct 1, 2023

Summary

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.

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

@strarsis strarsis changed the title PHP 8: Enable JIT PHP 8: Enable JIT Oct 1, 2023
@strarsis strarsis changed the title PHP 8: Enable JIT PHP 8: Enable JIT (PHP INI option) Oct 1, 2023
@swalkinshaw
Copy link
Member

This would be great 🚀 . Do you want to contribute the addition @strarsis ?

@strarsis
Copy link
Contributor Author

strarsis commented Oct 1, 2023

@swalkinshaw: Sure! I prepare a PR for this.

@strarsis
Copy link
Contributor Author

strarsis commented Oct 1, 2023

@swalkinshaw: #1505

@swalkinshaw
Copy link
Member

closed by #1505

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants