Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74145 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48529 invoked from network); 13 May 2014 14:34:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 May 2014 14:34:57 -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.182 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.182 mail-ve0-f182.google.com Received: from [209.85.128.182] ([209.85.128.182:49469] helo=mail-ve0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/00-47142-09D22735 for ; Tue, 13 May 2014 10:34:56 -0400 Received: by mail-ve0-f182.google.com with SMTP id sa20so554570veb.27 for ; Tue, 13 May 2014 07:34:54 -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=kCaDO7J3Kt21DaVqdrE6i2E9H4n/mUcnIfX6+1l+24k=; b=BDZbgLF5kh8hIiPrS0ClHax64SDhh42EclZkkMg7zomNZ2TLKwvQ9If2sftUJ4RhJv tJ+1n+QAWuI4/4LYlngkOr8D/1y/zScSXG2kaDop82rLGEKSO+772B/CDeuitpvnZf2/ mouHoOcnEq72tXpgb/4tWihDEYMRYsl4IL9oMHzLa6p1X6pqphmH3LHPp+G2giO3CJH/ 0H8YpXQEc53FqfvE2Dp0+zoftf/q5Tklc4PBWKCC4RJj6oB0t/3DezZN0CeduO87e8lp PeuTl3WnbAjLkn6+8SWPBIXypCdd+rHnxOPHltSWg9GyrVCAwjT0yGba5jUC4oQ7kVPz U8aw== X-Gm-Message-State: ALoCoQlrkReGq/yHvNdnhJW+z1Oj8HY3O3zeTgDMmM+iM3eEtg2JVzULvkMS5QdJ2CCBcuGjxnyLvStecwgpBgHKwXmR0sCET0tjYdr5mvLd8zVZnKIixYdIQehxVViRJ1WF6+5QqZyC MIME-Version: 1.0 X-Received: by 10.52.185.72 with SMTP id fa8mr5533043vdc.12.1399991693956; Tue, 13 May 2014 07:34:53 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Tue, 13 May 2014 07:34:53 -0700 (PDT) In-Reply-To: <537227EC.4000400@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> <5370D35C.8000306@lerdorf.com> <53715F59.6070203@lerdorf.com> <537227EC.4000400@lerdorf.com> Date: Tue, 13 May 2014 18:34:53 +0400 Message-ID: To: Rasmus Lerdorf Cc: Zeev Suraski , Andrea Faulds , Andi Gutmans , Sebastian Bergmann , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=bcaec548a66d9b709f04f948f7b2 Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: dmitry@zend.com (Dmitry Stogov) --bcaec548a66d9b709f04f948f7b2 Content-Type: text/plain; charset=UTF-8 In case you care about few additional req/sec it must not be a problem to do it on most major Linux distributions. $ CC="gcc -m32" ./configure --without-pic .... anyway, 64-bit phpng gets much more improvement because of reduced memory consumption. Thanks. Dmitry, On Tue, May 13, 2014 at 6:10 PM, Rasmus Lerdorf wrote: > On 5/12/14, 11:05 PM, Dmitry Stogov wrote: > > Even in this 64-bit world, I would suggest to try 32-bit PHP. In most > > cases it shows better performance. > > X32 ABI would be ideal, but it's not widely supported yet. > > > > Anyway, PIC doesn't make significant slowdown on x86_64, because of > > additional CPU registers and special PIC support. > > > > We tried GOTO executor and, of course, it's faster. > > Actually, after all the optimizations, instruction dispatch overhead > > became more and more significant, > > so we will have to think about it. > > But I don't think people are going to be building PHP 32-bit if the rest > of their system is all 64-bit. And PIC vs. non-PIC isn't really an issue > anymore as I suspected. We should be optimizing for 64-bit. By the time > phpng hits the world there will be even fewer 32-bit deploys out there. > > -Rasmus > > --bcaec548a66d9b709f04f948f7b2--