Bug #80450 [Opn]: JIT config in PHP-FPM

From: Date: Tue, 01 Dec 2020 11:28:30 +0000
Subject: Bug #80450 [Opn]: JIT config in PHP-FPM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230756@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80450&edit=1

 ID:                 80450
 Updated by:         cmb@php.net
 Reported by:        vagiz at kaifas dot lt
 Summary:            JIT config in PHP-FPM
 Status:             Open
 Type:               Bug
 Package:            *Configuration Issues
 Operating System:   CentOS Linux release 8.2.2004 (C
 PHP Version:        8.0.0
 Block user comment: N
 Private report:     N

 New Comment:

This *might* be related to bug #80419.


Previous Comments:
------------------------------------------------------------------------
[2020-12-01 11:00:10] vagiz at kaifas dot lt

copy paste mistake:
in the first message <..>Case 2:

Case 1:<..>

should be "Case 2:" only

------------------------------------------------------------------------
[2020-12-01 10:57:25] vagiz at kaifas dot lt

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 this bug report at https://bugs.php.net/bug.php?id=80450&edit=1


Thread (8 messages)

« previous php.bugs (#230756) next »