Bug->Doc #79644 [Opn->Ver]: OpCache opcache.max_wasted_percentage cannot be set over 0.50%
| From: | cmb@php.net | Date: | Wed, 27 May 2020 16:45:12 +0000 |
| Subject: | Bug->Doc #79644 [Opn->Ver]: OpCache opcache.max_wasted_percentage cannot be set over 0.50% | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17615@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79644&edit=1
ID: 79644
Updated by: cmb@php.net
Reported by: abuse at botrax dot com
Summary: OpCache opcache.max_wasted_percentage cannot be set
over 0.50%
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
Package: opcache
Operating System: CentOS 7
PHP Version: 7.4.6
Block user comment: N
Private report: N
New Comment:
Indeed, 50% is the maximum permissible value.
Previous Comments:
------------------------------------------------------------------------
[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