Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111698 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13481 invoked from network); 27 Aug 2020 01:01:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Aug 2020 01:01:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D81C1180502 for ; Wed, 26 Aug 2020 17:04:56 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 26 Aug 2020 17:04:56 -0700 (PDT) Received: by mail-pf1-f182.google.com with SMTP id x143so2061518pfc.4 for ; Wed, 26 Aug 2020 17:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=9mEjrB+SMxeYuhaPSav63QMsJubPosf04mnuKbGs6Cc=; b=G6fdXTYymrluNMP4ECIPs8ZSIey4PloKybH4tAmWoZK26wcrnIwOzvxQwbfLGT0yCV 2N8a1fbMydyXtRnoGxL+QetPClz+RichyHmLAUo+m87lt8YK8F8QaCt3Mj2530HEoUM7 haU15HwxY6Zyb6M16IJ7UQU+0cFBOGKy1PO/YYcoXxN/l2CmMWr1QKk6M1hE4+WfkB2A e/h9sukjJGcjGprpLPVLt8CZNsW1xYw6wvzDO7Ps9TGe9pa1OmzKJ+grmXf9udhotY4x IVp1AHWPpEFFlw1eaT6NLPpPBrRWoVVbSv1ti4rAo3gcaVbtYDVfUV5vGcgBEfgcvK6V 6xNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9mEjrB+SMxeYuhaPSav63QMsJubPosf04mnuKbGs6Cc=; b=bUt8khGYQXgsb8p1z7BayjJgKBstNV2FNtRUOc9uQA9ogWYiV4bMg09LeG5/OX6b3D 1qxvzrc/z60hA21s2bMYYNeEhOIoicA7VEo+ZevbAYlCtBXiYstAL32y0RGuZ114mQZN IwZDkV24cx+QCNAEUYTW7ACtni+dwEr1iCaVP32uzJdNR4RaKOWcXn2tqRPFu0KIWsgz XxuR5gdEpzs9laZoWdwA5xolV7CMpmhvWjFMa4AS+LDare0EIeShlbjP88IwIkVTzDpd k3AvkRl1NIBiqrGckq4EhhqitxZ5QuUfE9FnWtMGpkJLv32buBX9Tyd8dVHfYP31FaCq nwNw== X-Gm-Message-State: AOAM531Gcz0Rl1ktxzW1BbTAWzUKEC0Nv7gwtoiuj4jD8HpF8ym+HFNH v8FaIL9pXlNFCrNo08um5XywkHfOtDpG X-Google-Smtp-Source: ABdhPJyvcNSMzNWfleWTTwgmus+4Ilua1iUflFCk/yCC3ROrfz8dgbdfyYxxl7HbThMZ/wEUwpqdyw== X-Received: by 2002:a17:902:7603:: with SMTP id k3mr13726250pll.113.1598486694081; Wed, 26 Aug 2020 17:04:54 -0700 (PDT) Received: from Stas-Mac-3.local (ec2-34-209-88-149.us-west-2.compute.amazonaws.com. [34.209.88.149]) by smtp.gmail.com with ESMTPSA id l21sm152653pgb.35.2020.08.26.17.04.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Aug 2020 17:04:52 -0700 (PDT) To: Nikita Popov , PHP internals References: Message-ID: <03c66270-db71-affd-2fe8-83bb50691ec5@gmail.com> Date: Wed, 26 Aug 2020 17:04:50 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Session mm support From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I've recently found out that compiling PHP with --with-mm has a massive > negative impact on PHP startup performance (approximately 3-4 times > slower), to the point that our CI got approximately 2x slower overall with > it enabled. This is not great. That's weird. Would be nice to run a profile to see what makes it so slow. From a quick look on the code it just creates a shared memory segment, which shouldn't be that expensive... > As I only found out about the existence of this session backend recently, > I'm wondering how widely it is used, and whether we wouldn't be better off > dropping it from php-src. The performance characteristics make it a pretty > big foot-gun. It's probably not that well known, especially as I'm not sure underlying library is well maintained (it has been last updated in 2006 but maybe it's still good and doesn't need any updates?) but I'd give it a chance by at least trying to see what's up. If it proves hard then we may think about dropping it. -- Stas Malyshev smalyshev@gmail.com