Bug #80450 [NEW]: JIT config in PHP-FPM
From: vagiz at kaifas dot lt
Operating system: CentOS Linux release 8.2.2004 (C
PHP version: 8.0.0
Package: *Configuration Issues
Bug Type: Bug
Bug description:JIT config in PHP-FPM
Description:
------------
Case 1:
file 10-opcache.ini has additional lines:
opcache.jit_buffer_size=256M
opcache.jit=1255
PHP-FPM has additional lines:
php_value[opcache.jit] = 1255
php_value[opcache.jit_buffer_size] = 105M
phpinfo() output:
JIT On
opcache.jit 1255 1255
opcache.jit_bisect_limit 0 0
opcache.jit_blacklist_root_trace 16 16
opcache.jit_blacklist_side_trace 8 8
opcache.jit_buffer_size 105M 105M
opcache.jit_debug 0 0
opcache.jit_hot_func 127 127
opcache.jit_hot_loop 64 64
opcache.jit_hot_return 8 8
opcache.jit_hot_side_exit 8 8
opcache.jit_max_exit_counters 8192 8192
opcache.jit_max_loop_unrolls 8 8
opcache.jit_max_polymorphic_calls 2 2
opcache.jit_max_recursive_calls 2 2
opcache.jit_max_recursive_returns 2 2
opcache.jit_max_root_traces 1024 1024
opcache.jit_max_side_traces 128 128
opcache.jit_prof_threshold 0.005 0.005
var_dump(opcache_get_status()['jit']) output:
array(7) {
["enabled"]=>
bool(true)
["on"]=>
bool(true)
["kind"]=>
int(5)
["opt_level"]=>
int(5)
["opt_flags"]=>
int(6)
["buffer_size"]=>
int(268435440)
["buffer_free"]=>
int(268431584)
}
Looks like opcache.jit_buffer_size is different.
Case 2:
Case 1:
file 10-opcache.ini has no any additional variables.
PHP-FPM has additional lines:
php_value[opcache.jit] = 1255
php_value[opcache.jit_buffer_size] = 105M
var_dump(opcache_get_status()['jit']) output:
array(7) {
["enabled"]=>
bool(false)
["on"]=>
bool(false)
["kind"]=>
int(5)
["opt_level"]=>
int(4)
["opt_flags"]=>
int(6)
["buffer_size"]=>
int(0)
["buffer_free"]=>
int(0)
}
phpinfo() output:
JIT Disabled
opcache.enable On
opcache.jit tracing tracing
opcache.jit_bisect_limit 0 0
opcache.jit_blacklist_root_trace 16 16
opcache.jit_blacklist_side_trace 8 8
opcache.jit_buffer_size 105M 105M
opcache.jit_debug 0 0
opcache.jit_hot_func 127 127
opcache.jit_hot_loop 64 64
opcache.jit_hot_return 8 8
opcache.jit_hot_side_exit 8 8
opcache.jit_max_exit_counters 8192 8192
opcache.jit_max_loop_unrolls 8 8
opcache.jit_max_polymorphic_calls 2 2
opcache.jit_max_recursive_calls 2 2
opcache.jit_max_recursive_returns 2 2
opcache.jit_max_root_traces 1024 1024
opcache.jit_max_side_traces 128 128
opcache.jit_prof_threshold 0.005 0.005
It leads me to confusion.
I've been following https://stitcher.io/blog/php-8-jit-setup guide.
I'm using https://rpms.remirepo.net/ , the latest
version:
PHP -v:
PHP 8.0.0 (cli) (built: Nov 24 2020 17:04:03) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies
Is it possible to enable jit via FPM?
p.s. I'm happy to provide full details/files on this case.
--
Edit bug report at https://bugs.php.net/bug.php?id=80450&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80450&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80450&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80450&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80450&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80450&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80450&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80450&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80450&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80450&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80450&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80450&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80450&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80450&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80450&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80450&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80450&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80450&r=mysqlcfg
Thread (8 messages)
- vagiz at kaifas dot lt