Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89246 invoked from network); 14 May 2014 23:33:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2014 23:33:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:33600] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/73-15285-83DF3735 for ; Wed, 14 May 2014 19:33:13 -0400 Received: by mail-qc0-f179.google.com with SMTP id x3so506566qcv.10 for ; Wed, 14 May 2014 16:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ta2aR9JGV231FjGFE7VY/Zwrp+itfdoqwS4lV8wDD5I=; b=YrBenLK/r/m6RQVUPJwOjQ6Db88/ySheJ0blSBJiNUn1ZV9Km8NhQtTJz4mCW2r+hD fN1O/p+0ucGQ7Yu3eVPh9s/6/1fXUC6jTJh1uz3zlF5FgzvPj5jUQIkWvIioYMmOJbhW kmwt5WtCGbUNupSfT/KoYINUaeIHYNUGU/zmldOeXYgxLL6WgU6gLzX7ANic5pZYuz26 AT2mQeGBfs6IjaRrbAg0JP4nJQIuCmaxEW9oiJAlEmGK/As5cu2MAt3jDqlyuE5ri97o 5Fn1jb2AHW0Pjc8jtpXsK8NRgdeIbG5MqMlo7IuNiMmd3f0TwcCgXklG9Bu1lqFjfhM8 Yosw== MIME-Version: 1.0 X-Received: by 10.224.11.208 with SMTP id u16mr8395557qau.4.1400110389860; Wed, 14 May 2014 16:33:09 -0700 (PDT) Received: by 10.140.47.231 with HTTP; Wed, 14 May 2014 16:33:09 -0700 (PDT) Date: Thu, 15 May 2014 01:33:09 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: [rfc] 64bit usage, actual memory usage using real life apps From: pierre.php@gmail.com (Pierre Joye) 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). 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 have to ask anyone to actually look at these numbers and the benefits (see the other thread "on memory usage with the 64bit patch, and interpretation of various numbers"). Cheers, -- Pierre @pierrejoye | http://www.libgd.org