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

From: Date: Wed, 25 Nov 2020 16:34:13 +0000
Subject: Bug #80419 [NEW]: opcache: free memory not reported as free
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230617@lists.php.net to get a copy of this message
From:             carsten_hammer at web dot de
Operating system: Linux
PHP version:      Irrelevant
Package:          opcache
Bug Type:         Bug
Bug description:opcache: free memory not reported as free

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 bug report at https://bugs.php.net/bug.php?id=80419&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80419&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80419&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80419&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80419&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80419&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80419&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80419&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80419&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80419&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80419&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80419&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80419&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80419&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80419&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80419&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80419&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80419&r=mysqlcfg


Thread (10 messages)

« previous php.bugs (#230617) next »