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

Idea: Performance improvement on opcache.max_accelerated_files #211

Open
Toflar opened this issue Jan 26, 2018 · 0 comments
Open

Idea: Performance improvement on opcache.max_accelerated_files #211

Toflar opened this issue Jan 26, 2018 · 0 comments
Labels
Milestone

Comments

@Toflar
Copy link
Member

Toflar commented Jan 26, 2018

By default, php's opcache only stores 2000 files. That's likely not enough, I have around 12000 in one of my medium-sized projects.
You can configure it and set it up to 100000. You can read more about tweaking it here: https://tideways.io/profiler/blog/fine-tune-your-opcache-configuration-to-avoid-caching-suprises

What about a self-check that outputs a warning if we have the default setting? I mean, your setup is not broken at all but you can get a huge performance gain if you optimize this.
The manager could even propose a good value by counting the files and rounding up to the next 5000 step.

$ find ./ -iname *.php|wc -l

Wdyt?

@Toflar Toflar added the feature label Jun 7, 2018
@aschempp aschempp added this to the x.x milestone Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants