-
Notifications
You must be signed in to change notification settings - Fork 2k
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
30-40% CPU usage increase with 8.2.8-bookworm #1431
Comments
We'll have
Not sure. We've had issues in the past that our images are slower than the equivalent Debian packages but have been unable to pinpoint exactly why (#493).
You could test to see if the Debian PHP 8.2 packages in Bookworm exhibit the same amount of CPU usage. If they do have similar usage, then maybe a package update in Bookworm is the problem, otherwise it might be something in the way we compile PHP 😢. |
Just a small heads-up, I'm still at it trying to pinpoint the original cause. |
I face the same problem. Not sure on how to pinpoint the origin. |
Similar issue, but not restricted to this docker image. So I guess it's either bookworm related, or php-fpm 8.2 related, or the packaging by deb.sury.org (which disabled JIT between those: oerdnj/deb.sury.org#1924) Unfortunately, can't easily reproduce it either, it only happens on our prod env, with like 300 requests/min |
Seems like the thing to do is try re-enabling the tracing JIT and giving it a suitable buffer depending on the codebase, assuming this can be done without too much trouble. |
I have encountered the same issue. The same problem occurred after we upgraded from php:7.4-fpm-bullseye to php:8.1-fpm (bookworm), where P95 and AVG response time increased. Finally, it returned to normal after using php:8.1-fpm-bullseye. |
Having a minimal and reliable reproducer/benchmark is going to be the critical piece (that's currently missing) for this to be investigated further. ("I saw this issue too!" is a helpful data point that can be communicated by adding a 👍 reaction to the top or any other post in this issue without making a dedicated comment that otherwise does not get us any closer to a solution. 🙇❤️) |
Turns out, at least in my case, that this is not strictly tied to PHP, but rather OpenSSL 1.x to 3.x change in the image update. The update from 1.x to 3.x added enormous overhead to CA parsing, which is noticeable not only in increased CPU load, but also 80-200ms slower response time on our servers. That is, with So, with our PHP application doing lots of HTTPS requests to other services, this added up to that increase. Specifying a dedicated, minimal CA bundle on the http client for known remote servers fixed the issue and gone back to the previous CPU load. |
We recently updated from 8.2.7-fpm to 8.2.8-fpm, where base system changed from bullseye to bookworm.
After a bit fiddling to re-enable blowfish encryption in OpenSSL 3, I noticed heavily increased cpu usage in all our deployments.
After basing our images on 8.2-fpm-bullseye (plus build and deploy), CPU usage is down to normal again.
What could have caused that behavior?
How long do you plan to provide bullseye based images?
What can I do to help pin down the problem?
The text was updated successfully, but these errors were encountered: