Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92610 invoked from network); 12 May 2014 07:21:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2014 07:21:21 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.128.180 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.180 mail-ve0-f180.google.com Received: from [209.85.128.180] ([209.85.128.180:33917] helo=mail-ve0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/E1-14093-B6670735 for ; Mon, 12 May 2014 03:21:20 -0400 Received: by mail-ve0-f180.google.com with SMTP id db12so8068658veb.25 for ; Mon, 12 May 2014 00:21:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=bqJjbOhTKO/JV6SiWEkZ3JYCsnbQL1xqQSnXum80mxA=; b=agd+DsXFr5maPE+st85183BTFlPzGVCBL4+6DobsMQQ4nbfVJ/LgO+y0WB7BTTGA+7 fyh54SzLYL1I1WkPklJTN3HyrJSb5i2XwdzVNV7jgqJpWiwvuS3g023LRioHnM/A1gGt mf/O2VHRvXPJTSjxXQzALMgLFe9qKN52oozfllgRvFwcw9NZgKHsToyITPQw9+NPScdA hxiV5udh+zuhkBR69Se0xJ/ZO0ngyMR8cK8yTPZy8DEwVC9nHpyAA2GSi5eGbsTBRWzI cKqEBTzJez1aT3n5mi4C+DtlTHAiZycG4VSBlH8rDHco8Uhkiw5EL0LGiMMXPAUGOCWw GL7A== X-Gm-Message-State: ALoCoQlJY9gHmMiWeUprWiUbnuq5u4fin2DpkrSgu4PxxU/IBZN85+JpADvyN9e/T0izA+RT1DS2H36qhSJbny0rsI4NgaxXQ3YtySRr4Kli4HO1V53sgCW/bvlMGedSJDqqtEsRWeex MIME-Version: 1.0 X-Received: by 10.220.69.72 with SMTP id y8mr21947015vci.21.1399879272668; Mon, 12 May 2014 00:21:12 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Mon, 12 May 2014 00:21:12 -0700 (PDT) In-Reply-To: <536BA9FE.1090408@lerdorf.com> References: <5369CED9.5010001@php.net> <4339111475046055305@unknownmsgid> <578A5A21-A820-42AD-A218-FB8049F63B82@zend.com> <3A72C770-9A9F-40C9-9DFE-F40478709BA8@ajf.me> <311084565853739035@unknownmsgid> <536BA9FE.1090408@lerdorf.com> Date: Mon, 12 May 2014 11:21:12 +0400 Message-ID: To: Rasmus Lerdorf Cc: Zeev Suraski , Andrea Faulds , Andi Gutmans , Sebastian Bergmann , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b3a9250c6b5a004f92eca52 Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: dmitry@zend.com (Dmitry Stogov) --047d7b3a9250c6b5a004f92eca52 Content-Type: text/plain; charset=UTF-8 the performance difference may be significant. For example qdig. mod_php (PIC) 440 req/sec FastCGI (non-PIC) 537 req/sec The bechmark was done with 32-bit build of phpng. I didn't get time to investigate it in all details, but it'll really make sense. Thanks. Dmitry. On Thu, May 8, 2014 at 7:59 PM, Rasmus Lerdorf wrote: > On 5/8/14, 5:48 AM, Zeev Suraski wrote: > > Again, this is just history/habits. > > Nothing prevents creation of apache-fastcgi-php5 package that'll do the > > exact same thing using FastCGI. > > What you are calling history/habits here is also knows as operational > stability. Every change to a stack incurs operational costs which has to > be balanced against the benefits of changing a component. Even though it > seems like a trivial thing to change from Apache/mod_php to > Apache/mod_fcgid or nginx+php-fpm, the operational cost can be quite > high. Consider changes to the Nagios monitoring setup. Dev VM images all > have to be updated. Startup/shutdown/deploy and logging systems might be > affected along with integration tests. And for most environments > changing doesn't actually buy you anything. A typical PHP request spends > so little time in the web server compared to waiting on mysql and > memcache replies that even a major performance boost doesn't actually > give you much. > > I fully agree that nginx+php-fpm is a nicer architecture. I like the > process separation that fastcgi brings and the saner and richer > configuration nginx brings along with the slight performance boost, but > even for my own use those benefits haven't outweighed the cost of > switching for me for systems that are running well under mod_php today. > > -Rasmus > > --047d7b3a9250c6b5a004f92eca52--