Doc #79644 [Com]: OpCache opcache.max_wasted_percentage cannot be set over 0.50%
Edit report at https://bugs.php.net/bug.php?id=79644&edit=1
ID: 79644
Comment by: abuse at botrax dot com
Reported by: abuse at botrax dot com
Summary: OpCache opcache.max_wasted_percentage cannot be set
over 0.50%
Status: Verified
Type: Documentation Problem
Package: opcache
Operating System: CentOS 7
PHP Version: 7.4.6
Block user comment: N
Private report: N
New Comment:
What is also confusing is why various plugins read the value as 0.50% instead of 50%
0.50% is vastly different from 50%.
Previous Comments:
------------------------------------------------------------------------
[2020-05-27 16:45:12] cmb@php.net
Indeed, 50% is the maximum permissible value.
------------------------------------------------------------------------
[2020-05-27 16:38:02] abuse at botrax dot com
Description:
------------
Zend Opcache v7.4.6 does not allow "opcache.max_wasted_percentage" to go over 0.50%, no
matter the setting in INI.
Causes Opcache to be constantly reset
PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader v10.4.0 (beta2), Copyright (c) 2002-2020, by ionCube Ltd.
with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies
"opcache.max_wasted_percentage"
Setting of 60 sets it to 0.05%
Setting of 50 sets it to 0.50%
Setting of 5 sets it to 0.05%
Setting of 6 sets it to 0.06%
Using PHP 7.4 from REMI repo
10-opcache.ini /etc/opt/remi/php74/php.d
php -i
opcache.max_wasted_percentage => 50 => 50
Value is then verified from within WordPress plugins to display configuration of OpCache.
3 different WordPress plugins show "opcache.max_wasted_percentage" to be never above 0.50%
Expected result:
----------------
Expect "opcache.max_wasted_percentage" OpCache parameter to be set from 0 to 100 in
percentage.
Expect script to read value to go above 0.50% when setting any value larger than 1.
Value should return exact value configured in INI file.
Actual result:
--------------
OpCache
"opcache.max_wasted_percentage"
Setting of 60 sets it to 0.05%
Setting of 50 sets it to 0.50%
Setting of 5 sets it to 0.05%
Setting of 6 sets it to 0.06%
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79644&edit=1
Thread (3 messages)