Bug #80419 [Opn]: opcache: free memory not reported as free

From: Date: Thu, 26 Nov 2020 11:26:40 +0000
Subject: Bug #80419 [Opn]: opcache: free memory not reported as free
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230632@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80419&edit=1

 ID:                 80419
 Updated by:         cmb@php.net
 Reported by:        carsten_hammer at web dot de
 Summary:            opcache: free memory not reported as free
 Status:             Open
 Type:               Bug
 Package:            opcache
 Operating System:   Linux
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

It could be helpful if you provide the full phpinfo() output of
the OPcache extension.  Also, which SAPI do you use?


Previous Comments:
------------------------------------------------------------------------
[2020-11-25 16:34:13] carsten_hammer at web dot de

Description:
------------
It's either buggy output in phpinfo() or an actual bug in opcache, not quite sure which.

Set opcache.memory_consumption to anything other than 128 to see the effect:

memory_consumption at 64 = used memory: -57940392, free memory: 125049256
memory_consumption at 128 = used memory: 9168472, free memory: 125049256
memory_consumption at 192 = used memory: 76277336, free memory: 125049256 
memory_consumption at 256 = used memory: 143386200, free memory: 125049256 

Free memory never goes above 125049256, no matter what.

Seen with version 7.3.20 and 7.4.6 on CentOS, 7.4.12 on Fedora as well as 7.4.13 on Arch Linux.



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



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


Thread (10 messages)

« previous php.bugs (#230632) next »