Please use the 👍 reaction to show that you are interested into the same feature.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe.
We have a case there a Nextcloud AIO Docker container admin receives full OPcache warnings, despite size being raised to 256 MiB and JIT buffer reduced to 8 MiB, which was thought to be sufficient with larger margin: https://github.com/nextcloud/all-in-one/issues/5559
While the intransparent increase of the overall OPcache usage, when JIT is enabled (not transparently in dedicated JIT buffer) explains this case mostly, another part is a relatively high "wasted memory":
When scripts are updated and their OPcache entry is updated via common revalidation (not active invalidation), their old entry seems to remain, occupying OPcache as wasted memory. It is however freed (via engine restart) automatically, if additional memory is needed, and wasted memory does exceed 5% (default) of the overall OPcache size. The linked report at AIO indicates that the OPcache engine did not require more memory yet, as the wasted memory did exceed 5%, but was not cleared, obviously.
The Nextcloud admin panel checks do not consider wasted memory as potential free memory yet.
Describe the solution you'd like
Read out opcache.max_wasted_percentage value, and consider all wasted cache above this percentage was free memory, as it would be freed, as fast as the engine really requires it.
Describe alternatives you've considered
Simpler, but possible false negatives: Consider all wasted memory as free memory.
Additional context
I will implement this, once I find time.
How to use GitHub
Is your feature request related to a problem? Please describe.
We have a case there a Nextcloud AIO Docker container admin receives full OPcache warnings, despite size being raised to 256 MiB and JIT buffer reduced to 8 MiB, which was thought to be sufficient with larger margin: https://github.com/nextcloud/all-in-one/issues/5559 While the intransparent increase of the overall OPcache usage, when JIT is enabled (not transparently in dedicated JIT buffer) explains this case mostly, another part is a relatively high "wasted memory":
When scripts are updated and their OPcache entry is updated via common revalidation (not active invalidation), their old entry seems to remain, occupying OPcache as wasted memory. It is however freed (via engine restart) automatically, if additional memory is needed, and wasted memory does exceed 5% (default) of the overall OPcache size. The linked report at AIO indicates that the OPcache engine did not require more memory yet, as the wasted memory did exceed 5%, but was not cleared, obviously.
The Nextcloud admin panel checks do not consider wasted memory as potential free memory yet.
Describe the solution you'd like
Read out
opcache.max_wasted_percentage
value, and consider all wasted cache above this percentage was free memory, as it would be freed, as fast as the engine really requires it.Describe alternatives you've considered
Simpler, but possible false negatives: Consider all wasted memory as free memory.
Additional context I will implement this, once I find time.