Comments (4)
Thanks @NathanAdhitya
opcache.enable=1 ;; ss = 1
opcache.enable_cli=1 ;; ss = 1
These are both hardcode enabled in SlickStack by default in the php.ini
https://github.com/littlebizzy/slickstack/blob/master/modules/php-fpm/8.1/php-ini.txt
However I'm not sure where this opcache.jit_buffer_size=256M
option comes from because I didn't see it in the default php.ini
files on the Ubuntu 22.04 boxes that I reviewed during 2022, so that's strange.
They also mention opcode.jit
flags but not sure what that key/value is...
...okay actually, I just found this: https://php.watch/versions/8.4/opcache-jit-ini-default-changes
Prior to PHP 8.4, the default INI configuration values for PHP were:
opcache.jit=tracing
opcache.jit_buffer_size=0
So perhaps these options are "hidden" in PHP 8.1 which is what SlickStack currently uses (the Ubuntu 22.04 default). He goes on to say the following:
In PHP 8.4, the default values for the two configuration options are changed as follows. JIT continues to be disabled by default in PHP 8.4. The only difference is that the default values for INI values have changed.
opcache.jit=disable
opcache.jit_buffer_size=64MNote that even with the default value changes, JIT is disabled by default.
from slickstack.
Unless I made a mistake and forgot to includes those entries in our php.ini
boilerplate for PHP 8.1, I think probably at this point we should wait until PHP 8.3 (Ubuntu 24.04) before we add those options to SlickStack.
Ref: https://medium.com/@edouard.courty/make-your-php-8-apps-twice-as-fast-opcache-jit-8d3542276595
Ref: https://stitcher.io/blog/php-8-jit-setup
Ref: https://stackoverflow.com/questions/75609964/choosing-the-best-opcache-jit-buffer-size-value-in-php8-jit
Looks very exciting though...
from slickstack.
from slickstack.
A bit messy, I guess we needed a new boilerplate for /etc/php/8.3/mods-available/opcache.ini
New: https://github.com/littlebizzy/slickstack/blob/master/modules/php-fpm/8.3/opcache-ini.txt
Hopefully we can combine more of the opcache
settings from php.ini
into opcache.ini
to keep it cleaner, but need to make sure it causes no issues first.
For now, JIT should be supported with 2 new options in ss-config
below:
OPCACHE_JIT_CRTO="1255"
OPCACHE_JIT_BUFFER_SIZE=""
As seen above, the buffer size is blank by default (the same as PHP core) which effectively disables JIT. To enable it simply choose a buffer size like 64M
or 100M
or larger if your server has a lot of RAM...
Testing and feedback desired, will close this for now, thanks!
from slickstack.
Related Issues (20)
- SS_ADMINER_PUBLIC="false" does not work as intended. HOT 9
- Cloudflare real visitor IP support in Nginx config HOT 18
- Option to allow only Cloudflare IPs to connect to origin server HOT 2
- OpenVZ PHP-FPM "Unable to set priority for the master process: Permission denied" HOT 9
- Support for custom Permissions Policy HTTP header in Nginx HOT 6
- Improve WP-Cron robustness for Multisite environments HOT 3
- Scanning WordPress core files to check if intact or broken HOT 4
- Redirect .php extension to WordPress if not exists HOT 4
- Why deny /wp-admin/load-styles.php and /wp-admin/load-scripts.php? HOT 3
- Nginx access log enabled by default but nginx.conf says not HOT 5
- Spam Content HOT 1
- Expose additional options for ss remote backup HOT 2
- support for local development ? HOT 1
- 403 Error on Static Assets with Query Strings on SlickStack.io HOT 1
- Implement Server-Wide Connection Limit to Mitigate Request Overload HOT 1
- ss-config had a build version update, but ss-update-config didn't HOT 4
- Can't get it to work out of the box? HOT 1
- 403 google bot error
- Consider optional cache warming script that can fire on cron schedules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slickstack.