Bug #78202 [NEW]: Opcache stats for cache hits, hits and opcache_hit_rate are capped at 32bit NUM
| From: | arutledge at paycomonline dot com | Date: | Mon, 24 Jun 2019 21:54:41 +0000 |
| Subject: | Bug #78202 [NEW]: Opcache stats for cache hits, hits and opcache_hit_rate are capped at 32bit NUM | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-221470@lists.php.net to get a copy of this message | ||
From: arutledge at paycomonline dot com
Operating system: WINNT
PHP version: Irrelevant
Package: opcache
Bug Type: Bug
Bug description:Opcache stats for cache hits, hits and opcache_hit_rate are capped at 32bit NUM
Description:
------------
I have a fairly high usage cluster of 35+ servers. Opcache is reset
daily each night. Opcache stats for 'cache hits', 'hits' and
'opcache_hit_rate' appear to be affected by the 'hits' variable which is
limited to a maximum number size of 2,147,483,647...or 32bit int. Once
this # of hits is reached the number will turn negative and start
counting up(going more positive) until it reaches zero and then it will
go positive again. Meanwhile the 'opcache_hit_rate' will become a
negative number...IE -788% hit rate for example.
My concern is if this affects performance?
Status dump below for an example server...
opcache_enabled true
cache_full false
restart_pending false
restart_in_progress false
used_memory 479.96 MB
free_memory 288.04 MB
wasted_memory 0 bytes
current_wasted_percentage 0.00%
buffer_size 67,108,864
used_memory 34.91 MB
free_memory 29.09 MB
number_of_strings 663,003
num_cached_scripts 17,085
num_cached_keys 35,394
max_cached_keys 65,407
hits -2,063,254,866
start_time Sun, 23 Jun 19 07:37:35 -0500
last_restart_time never
oom_restarts 0
hash_restarts 0
manual_restarts 0
misses 17,638
blacklist_misses 0
blacklist_miss_ratio 0.00%
opcache_hit_rate -108.17%
Thank you
--
Edit bug report at https://bugs.php.net/bug.php?id=78202&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78202&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78202&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78202&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78202&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78202&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78202&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78202&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78202&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78202&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78202&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78202&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78202&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78202&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78202&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78202&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78202&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78202&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78202&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78202&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78202&r=mysqlcfg