Skip to content

Commit 2aa2d91

Browse files
iluuu1994danog
andcommitted
Reduce jit_max_root_traces in tests
This value would be so high, occupying 88MB of shm on my machine and effectively disabling the JIT in some cases. Co-authored-by: Daniil Gentili <[email protected]>
1 parent 345ac90 commit 2aa2d91

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.cirrus.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ arm_task:
220220
-d zend_extension=opcache.so
221221
-d opcache.enable_cli=1
222222
-d opcache.jit_buffer_size=64M
223-
-d opcache.jit_max_root_traces=1000000
224-
-d opcache.jit_max_side_traces=1000000
225-
-d opcache.jit_max_exit_counters=1000000
223+
-d opcache.jit_max_root_traces=100000
224+
-d opcache.jit_max_side_traces=100000
225+
-d opcache.jit_max_exit_counters=100000
226226
-d opcache.jit_hot_loop=1
227227
-d opcache.jit_hot_func=1
228228
-d opcache.jit_hot_return=1

.github/actions/test-linux/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ runs:
4444
-d opcache.jit=${{ inputs.jitType }} \
4545
-d opcache.protect_memory=1 \
4646
-d opcache.jit_buffer_size=64M \
47-
-d opcache.jit_max_root_traces=1000000 \
48-
-d opcache.jit_max_side_traces=1000000 \
49-
-d opcache.jit_max_exit_counters=1000000 \
47+
-d opcache.jit_max_root_traces=100000 \
48+
-d opcache.jit_max_side_traces=100000 \
49+
-d opcache.jit_max_exit_counters=100000 \
5050
-d opcache.jit_hot_loop=1 \
5151
-d opcache.jit_hot_func=1 \
5252
-d opcache.jit_hot_return=1 \

.github/actions/test-macos/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ runs:
2323
-d opcache.jit=${{ inputs.jitType }} \
2424
-d opcache.protect_memory=1 \
2525
-d opcache.jit_buffer_size=64M \
26-
-d opcache.jit_max_root_traces=1000000 \
27-
-d opcache.jit_max_side_traces=1000000 \
28-
-d opcache.jit_max_exit_counters=1000000 \
26+
-d opcache.jit_max_root_traces=100000 \
27+
-d opcache.jit_max_side_traces=100000 \
28+
-d opcache.jit_max_exit_counters=100000 \
2929
-d opcache.jit_hot_loop=1 \
3030
-d opcache.jit_hot_func=1 \
3131
-d opcache.jit_hot_return=1 \

.github/scripts/windows/test_task.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ set OPENSSL_CONF=
8383
rem set SSLEAY_CONF=
8484

8585
rem prepare for OPcache
86-
if "%OPCACHE%" equ "1" set OPCACHE_OPTS=-d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=64M -d opcache.jit_max_root_traces=1000000 -d opcache.jit_max_side_traces=1000000 -d opcache.jit_max_exit_counters=1000000 -d opcache.jit_hot_loop=1 -d opcache.jit_hot_func=1 -d opcache.jit_hot_return=1 -d opcache.jit_hot_side_exit=1 -d opcache.jit=tracing
86+
if "%OPCACHE%" equ "1" set OPCACHE_OPTS=-d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=64M -d opcache.jit_max_root_traces=100000 -d opcache.jit_max_side_traces=100000 -d opcache.jit_max_exit_counters=100000 -d opcache.jit_hot_loop=1 -d opcache.jit_hot_func=1 -d opcache.jit_hot_return=1 -d opcache.jit_hot_side_exit=1 -d opcache.jit=tracing
8787
rem work-around for failing to dl(mysqli) with OPcache (https://github.com/php/php-src/issues/8508)
8888
if "%OPCACHE%" equ "1" set OPCACHE_OPTS=%OPCACHE_OPTS% -d extension=mysqli
8989

.github/workflows/nightly.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ jobs:
380380
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
381381
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
382382
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
383-
echo opcache.jit_max_root_traces=1000000 >> /etc/php.d/opcache.ini
384-
echo opcache.jit_max_side_traces=1000000 >> /etc/php.d/opcache.ini
385-
echo opcache.jit_max_exit_counters=1000000 >> /etc/php.d/opcache.ini
383+
echo opcache.jit_max_root_traces=100000 >> /etc/php.d/opcache.ini
384+
echo opcache.jit_max_side_traces=100000 >> /etc/php.d/opcache.ini
385+
echo opcache.jit_max_exit_counters=100000 >> /etc/php.d/opcache.ini
386386
echo opcache.jit_hot_loop=1 >> /etc/php.d/opcache.ini
387387
echo opcache.jit_hot_func=1 >> /etc/php.d/opcache.ini
388388
echo opcache.jit_hot_return=1 >> /etc/php.d/opcache.ini

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ before_script:
8585

8686
# Run PHPs run-tests.php
8787
script:
88-
- travis_wait 60 ./travis/test.sh -d opcache.jit=tracing -d opcache.jit_buffer_size=64M -d opcache.jit_max_root_traces=1000000 -d opcache.jit_max_side_traces=1000000 -d opcache.jit_max_exit_counters=1000000 -d opcache.jit_hot_loop=1 -d opcache.jit_hot_func=1 -d opcache.jit_hot_return=1 -d opcache.jit_hot_side_exit=1
88+
- travis_wait 60 ./travis/test.sh -d opcache.jit=tracing -d opcache.jit_buffer_size=64M -d opcache.jit_max_root_traces=100000 -d opcache.jit_max_side_traces=100000 -d opcache.jit_max_exit_counters=100000 -d opcache.jit_hot_loop=1 -d opcache.jit_hot_func=1 -d opcache.jit_hot_return=1 -d opcache.jit_hot_side_exit=1
8989
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
9090

9191
after_success:

0 commit comments

Comments
 (0)