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

From: Date: Tue, 24 Mar 2015 08:33:42 +0000
Subject: Bug #67691 [Com]: Opcache "used memory" value wrong
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191561@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
 Comment by:         denis at shashkov dot pro
 Reported by:        torben at dannhauer dot info
 Summary:            Opcache "used memory" value wrong
 Status:             Analyzed
 Type:               Bug
 Package:            opcache
 Operating System:   Linux Debian Jessie
 PHP Version:        5.6.4
 Block user comment: N
 Private report:     N

 New Comment:

We have similar behaviour after restarting Opcache.
I've found a misfit in the different variables storing shared_free counter - see my patch.


Previous Comments:
------------------------------------------------------------------------
[2015-01-06 16:48:10] rasmus@php.net

I am not able to reproduce this.

I checked both php-fpm and mod_php. 
For 256M php-fpm (PHP 7) I see:

   [used_memory] => 18738768
   [free_memory] => 249696688

and for 512M mod_php (PHP 5.6-dev) I see:

   [used_memory] => 11698176
   [free_memory] => 525172736

------------------------------------------------------------------------
[2015-01-03 18:32:55] torben at dannhauer dot info

Still exists in 5.6.4

------------------------------------------------------------------------
[2014-10-27 09:17:16] torben at dannhauer dot info

The bug exists also in 5.6.2.. :(

------------------------------------------------------------------------
[2014-09-08 05:23:05] torben at dannhauer dot info

Bug still exists in stable 5.6.0

------------------------------------------------------------------------
[2014-08-25 06:05:50] torben at dannhauer dot info

The bug is still existent in PHP 5.6 RC4

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=67691


--
Edit this bug report at https://bugs.php.net/bug.php?id=67691&edit=1


Thread (9 messages)

« previous php.bugs (#191561) next »