From: torben at dannhauer dot info
Operating system: Linux Debian Jessie
PHP version: 5.6.0RC2
Package: opcache
Bug Type: Bug
Bug description:Opcache "used memory" value wrong
Description:
------------
For PHP-FPM settings with large memory size configurations, a large
portion (70%-90%) of the opcache memory is reported as "used" even
directly after restarting PHP-FPM without any php scripts cached.
Test script:
---------------
To reproduce:
* configure your php.ini:
php_admin_value[memory_limit] = 1G
php_admin_value[upload_max_filesize] = 1G
php_admin_value[post_max_size] = 1G
; OpCache Bytecode caching
php_flag[opcache.enable] = on
php_flag[opcache.enable_cli] = on
php_admin_value[opcache.memory_consumption] = 512M
php_admin_value[opcache.max_accelerated_files] = 50000
* restart PHP-FPM
* look at opcache memrory used value.
Expected result:
----------------
At least directly after PHP restart, it should not be dependent on
memory size configurations
Actual result:
--------------
phpinfo() :
Used memory 206827696
Free memory 61607760
--
Edit bug report at https://bugs.php.net/bug.php?id=67691&edit=1
--