Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74216 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20548 invoked from network); 15 May 2014 06:21:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2014 06:21:00 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:65204] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/A0-14382-BCC54735 for ; Thu, 15 May 2014 02:20:59 -0400 Received: by mail-qc0-f170.google.com with SMTP id i8so1073027qcq.1 for ; Wed, 14 May 2014 23:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8+ocZf9O2JyKwahCU4d9+VidMzwfSLzSjf5NwdMaSlc=; b=o9PoTs0B6PC+CCxK88jx7kittQNl1Mns/pnPxMl2v7j6i0UsfbaSNmg/JSbtVd04Ui 9uFcDI0w4CvysmQYXhxbOwkkL+4IKnA0lalT2nX76Lvt+BzrCzzaqHqoM86Ofm4ZHzjI SLP6vpKO11rEMg0uenfG/KJ6fiYCImXhnOkaS/UeaUtvBOjm7gFwEFMxWycuQmTmbaOx m1FVobM1AT68RcKrjlDbwAxmbGKmgVFf95issq1o4tqrJYYM1Q2XU0QKOor6HphGhpn4 PsPZ6DW5UkI49cmo1uLQQujo1tYW8uCc/WeP50iyQWbW/u5nnPZVbw6VQpDcwznXUDRa 9/6w== MIME-Version: 1.0 X-Received: by 10.224.49.67 with SMTP id u3mr10039614qaf.63.1400134856536; Wed, 14 May 2014 23:20:56 -0700 (PDT) Received: by 10.140.47.231 with HTTP; Wed, 14 May 2014 23:20:56 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 May 2014 08:20:56 +0200 Message-ID: To: Dmitry Stogov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [rfc] 64bit usage, actual memory usage using real life apps From: pierre.php@gmail.com (Pierre Joye) On Thu, May 15, 2014 at 8:09 AM, Dmitry Stogov wrote: > > > On Thu, May 15, 2014 at 3:33 AM, Pierre Joye wrote: >> >> hi, >> >> So here are the first numbers: >> >> >> peak mem usage: >> >> Wordpress master: 24.33Mb >> Wordpress str_size_and_int64: 25.72Mb >> delta 5.4% >> >> Symfony master: 26.59Mb >> Symfony str_size_and_int64: 27.19Mb >> delta 2.2% >> >> Drupal master: 23.46MB >> Drupal str_size_and_int64: 24.60Mb >> delta 4.63% >> >> There is indeed more memory used but it is less than one could expect >> and very acceptable given the benefits provided by the patch. >> >> Also we may see more gains if class/variable/etc names use int32 >> instead of size_t, as Stas pointed out it makes little sense in this >> case and the implementation is much safer than any other areas in the >> core (or other extensions). > > > Read "more gain" as "less degradation". No, I mean more gain. But it is nice to see that actual numbers are being ignored, we go from your 8% to a medium increase to something closed to the "measures margin errors" level, but heh, who cares? >> I feel confident that we can even get better results with phpng, once >> we get the time to actually merge the 64bit patch and do further >> analyzes while stabilizing phpng. > > > I wouldn't be so confident, before seeing the results. Which won't and can't be seen before phpng is somehow usable and testable. We are very far away from that. > The relative memory consumption increase on phpng is going to be more > significant. With the risk to repeat myself, phpng is by far not ready. We have proven that the impact of the 64bit patch is not significant, from a memory and performance point of view. The memory results can be seen here and in the other tests we published. The performance as well, and we have to keep in mind that it performs equally or better with many widely used applications. Now, for what I understand, no matter what we do or provide, you guys are going to refuse this patch, with absolutely no valid reason but an hypothetical change that may be ready in a timely manner for php-next. Given that it is in an acceptable state, both from a stability and API point of view. This is definitively a bad thing and I am not sure that will end well for php as a project or language. Or did I miss something that could tell me that you may actually be more cooperative? Cheers, Pierre