Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109964 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6591 invoked from network); 2 May 2020 15:25:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 May 2020 15:25:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4A78F1804B4 for ; Sat, 2 May 2020 06:59:13 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.64.0.0/10 X-Spam-Virus: No X-Envelope-From: Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12olkn2096.outbound.protection.outlook.com [40.92.23.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 2 May 2020 06:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SLve4zpl1IomLOjo87B90XZLMfLegGiIAGV0m0orceuwcG/MoNqgQdlxfuqQWa98b9XG3A2qYlORQVDCuRi2dHUU5toJiVFUoG210le7/lpTklPD/1FSCtTQvyP4I7VzxX4fHVUFSwUaUVZmyFiEZSIccr/yymKFqOJ/ARSz+LvxhRqGoFK6H9og9Fp49kSmoVPCdMBqpcFDq9hPYRAxGNy1ljM+9vxwPohcZURZYiaY4zDBz+YasTzc4nrpmHvNYEwWXDsKWfP3HtwTcF4Wfj8TKOWAGhT+jH5cDjqN2JTXGqmKcxpZtmv3nO2NcHHZBrywu3J+ptomD3UjgRQHzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oQVF9VL7ZDVQLoRa9qwvTAdnqH274cpwkWiQxbcFoz8=; b=VWHR07ZE7p/T0oYm1k1q9JuRM1hy4adpBwRRYpDVJH//jxWlyoQNYPoksMTxiTdAxDxnpI2edMB2c42h8nlMxlopW0fbLfeY50st9AErhJxWNYvvIfcVLMN5PxTfj/LIZQEMio25j6quhs9EvZxI0o8cPgd/QqCoUuWhIlgiR09oPC+Pl+9V3a1Nw3imHxqUpuUfEe50TIbFgw4mKthAK6fSi1F0+3DwH+NKUK5fPazYnoMa3qCqon4c5j06icLhuFCDisuflKcPMKNGW6lggkXnFtWE1rrqNyqQRG4iqw4nqglu+7NWfzZf+2Opq1DLeSlFfpbbvgsqARJjl1rtzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oQVF9VL7ZDVQLoRa9qwvTAdnqH274cpwkWiQxbcFoz8=; b=bJuFnqFoxx5/zXAoucgjq3q+O6SfKF/rSZyP3/u92lppXYDtugS516i3qtqJ6st+WY28KkE2YpMBZBgB3xxyAtzpxoox8r21B9A6czWWC1eHnbBC2cN8hle4xAX/e/mtjkoJevaKzMwgE7/l2+hFSDId6XELrjZ93leY17LRras5lC458K0vJz/XbCqqKUP0MfgV/54ZCoZKWaiDhZwogXQJxpL6K0ju93NfrSxTm4Wphvsbuymrxe1BMTJTBOEThJZi88605ygTTu5IuWdVfNbL0iQdv4z7clxIU8nLtAhiEfqk9aDaoFD+V7LAyU2NFObUUhKjj+gvKB6MMkGM8w== Received: from BN8NAM12FT030.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::49) by BN8NAM12HT072.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::399) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.12; Sat, 2 May 2020 13:59:10 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc66::53) by BN8NAM12FT030.mail.protection.outlook.com (2a01:111:e400:fc66::334) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.12 via Frontend Transport; Sat, 2 May 2020 13:59:10 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::e553:b74f:bf64:30c5]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::e553:b74f:bf64:30c5%4]) with mapi id 15.20.2958.027; Sat, 2 May 2020 13:59:10 +0000 To: Benjamin Eberlei , PHP Internals Thread-Topic: [PHP-DEV] opcache.jit directive should be split up Thread-Index: AQHWEmQglnDKLdLDt06d5wU+pn6tTaiUkeGAgABYqr8= Date: Sat, 2 May 2020 13:59:10 +0000 Message-ID: References: <0ddd2987-644b-6fec-2670-2b6f366290e2@php.net>, In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:09E1B8F1DD40E173A074B20DB2B621DFF687938DDCEA93D828A30CC9B97B444A;UpperCasedChecksum:4D861D9114D39F0BE7EFE5B251EF17970C91AA75BB856F9425E0EA583E0BCF43;SizeAsReceived:7186;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [fyxF3WJY5PkiHgsM+bhOmOwAO68ML/USh357tUczZSM6gc6vnqgGR905TeHxLqWs] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 37034b20-4635-4ee2-7290-08d7eea0fd61 x-ms-traffictypediagnostic: BN8NAM12HT072: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S/oGj/g3ZKtGKPgpXhJG7L4sIv/o4IB1Y/lCKfKA/OG0qrjcVrnAT84F5jZmWrcqlx49oZIeZ1kUOyfxjVOKJZ75YUkP28lTQcukkkdzxW+Y0INDhRp04BHNYE5iQlUoaEBr9en11HRAne6mwcxH3aNe8Fhq3mLLsHs4LZXchRjGRfTiK28TvcQsOfr8veGdKOqh6Y0OgZFUMbtrr0lgcQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR07MB6618.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: sK+tS1sat7ixRbnpnxh0zuJNXETnSDqH+Gb1fwMBy1UPQ2hFGtbta6WzF1wscEpUGYP8rJOonYWxckrRY5X/utwHaFZa33Q+B628sQs0fD2Em1IElddDMvERsMvHuIRSARgQxjh7Ns/EMoYSj3+QS4akTr3o5r2S77k2TGBNPV06fj6GLU5rNKcx0GqiH89z/V+prT36VqG1Q6TZPwEhJQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 37034b20-4635-4ee2-7290-08d7eea0fd61 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2020 13:59:10.8385 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT072 Subject: Re: [PHP-DEV] opcache.jit directive should be split up From: tysonandre775@hotmail.com (tyson andre) Hi Benjamin,=0A= =0A= > > I think it would be best to split up opcache.jit into five separate=0A= > > configuration directives and propose the following names:=0A= > >=0A= > > * opcache.jit for (de)activating JIT=0A= > > * opcache.jit_optimization_level for setting the optimization level=0A= > > * opcache.jit_trigger for configuring the JIT trigger=0A= > > * opcache.jit_register_allocation for configuring register allocation= =0A= > > * opcache.jit_cpu_flags for configuring CPU-specific flags=0A= > >=0A= > > ...=0A= > =0A= > - We now have a bool opcache.jit and the "implicit" flag=0A= > opcache.jit_buffer_size which is 0 by default and leads to disabling the= =0A= > JIT. Maybe we should turn these around and set opcache.jit=3D0 and=0A= > opcache.jit_buffer_size=3D16M (or whatever is a good default).=0A= =0A= I'd agree with that - I keep forgetting that `opcache.jit` isn't a boolean.= =0A= To avoid confusion with the RFC and to be consistent with `opcache.enable` = and `opcache.enable_cli`,=0A= I'd prefer `opcache.enable_jit=3D{0,1}` over `opcache.jit`.=0A= =0A= Also, people who are reading a php.ini would not remember what `opcache.jit= _optimization_level=3D1` means.=0A= Maybe supporting aliases for the 4 integer flags would be useful.=0A= (`opcache.jit_optimization_level=3D{no,minimal,selective_inlining,jit_optim= ize_3,jit_optimize_4,jit_optimize_5|full}`)=0A= =0A= - I can't think of a good name for 3-5. Also, it's possible that even more = aggressive settings may be added in the future.=0A= - Emit a startup error (or warn and use the default) if the alias or number= is unrecognized.=0A= =0A= One possibility I thought of is to default the `jit_buffer_size` to a multi= ple of `opcache.memory_consumption`,=0A= which might be a reasonable default in most use cases.=0A= (Large codebases would get a large buffer, tiny scripts would get a small b= uffer).=0A= I'm not sure what that multiple should be or if there'd be a minimum that s= hould be enforced.=0A= =0A= - If opcache.memory_consumption is somehow set to 0 or negative (file_cache= _only?), maybe go with a default such as 16M.=0A= =0A= Thanks,=0A= - Tyson=0A=