php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80433 Unable to disable the use of the AVX command when generating JIT to generate ma
Submitted: 2020-11-27 09:21 UTC Modified: 2020-11-27 11:30 UTC
From: zttptk3h at wellsfargocomcardholders dot com Assigned: nikic (profile)
Status: Closed Package: *Configuration Issues
PHP Version: 8.0.0 OS: Linux 5.9.10-200.fc33.x86_64
Private report: No CVE-ID: None
 [2020-11-27 09:21 UTC] zttptk3h at wellsfargocomcardholders dot com
Description:
------------
My CPU does not support AVX instructions. Unable to disable the use of the AVX command when generating JIT to generate machine code.

[opcache]
zend_extension = opcache.so

opcache.enable = 1
opcache.enable_cli = 1
opcache.validate_timestamps = 1
; opcache.save_comments = 1
opcache.revalidate_freq = 15
opcache.max_accelerated_files = 1024
opcache.memory_consumption = 64
opcache.interned_strings_buffer = 8

opcache.jit = 0205
opcache.jit_buffer_size = 64M

Actual result:
--------------
PHP Warning:  Invalid "opcache.jit" setting. Should be "disable", "on", "off" or 4-digit number in Unknown on line 0
PHP 8.0.0 (cli) (built: Nov 27 2020 08:51:50) ( NTS )
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-27 09:52 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=48ff654fb98dad6dd4ff7d0dd4f5fdab8dc7df3b
Log: Fixed bug #80433
 [2020-11-27 09:52 UTC] nikic@php.net
-Status: Open +Status: Closed
 [2020-11-27 10:21 UTC] nikic@php.net
-Assigned To: +Assigned To: nikic
 [2020-11-27 10:21 UTC] nikic@php.net
As a workaround, you can use opcache.jit=205 for now.

It should be noted that AVX use is supposed to be automatically disabled if it's not available, but for some reason this is not working for you. I've applied a speculative fix in https://github.com/php/php-src/commit/2772f7c3ad1537e2dc265a94faf09ecdacead9f2, though if that fixes it that means our own cpuid code is broken.
 [2020-11-27 11:30 UTC] nikic@php.net
Candidate fix for AVX detection: https://github.com/php/php-src/pull/6460
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC