Bug #67691 [Opn]: Opcache "used memory" value wrong

From: Date: Mon, 25 Aug 2014 06:05:50 +0000
Subject: Bug #67691 [Opn]: Opcache "used memory" value wrong
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187266@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67691&edit=1

 ID:                 67691
 User updated by:    torben at dannhauer dot info
 Reported by:        torben at dannhauer dot info
 Summary:            Opcache "used memory" value wrong
 Status:             Open
 Type:               Bug
 Package:            opcache
 Operating System:   Linux Debian Jessie
-PHP Version:        5.6.0RC3
+PHP Version:        5.6.0RC4
 Block user comment: N
 Private report:     N

 New Comment:

The bug is still existent in PHP 5.6 RC4


Previous Comments:
------------------------------------------------------------------------
[2014-08-12 09:13:31] torben at dannhauer dot info

This bug still exsits in 5.6 RC3

------------------------------------------------------------------------
[2014-07-27 17:45:59] torben at dannhauer dot info

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 this bug report at https://bugs.php.net/bug.php?id=67691&edit=1


Thread (9 messages)

« previous php.bugs (#187266) next »