Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18950 invoked from network); 15 May 2014 06:09:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2014 06:09:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.128.170 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.170 mail-ve0-f170.google.com Received: from [209.85.128.170] ([209.85.128.170:46287] helo=mail-ve0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/40-14382-71A54735 for ; Thu, 15 May 2014 02:09:27 -0400 Received: by mail-ve0-f170.google.com with SMTP id db11so711028veb.15 for ; Wed, 14 May 2014 23:09:24 -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=e3/ckyyflDLeOguMY81wZTMb/STB0WcvzLA99MkM8RY=; b=alubpNIPs4QyIytuvnlS+GN2TIvb1vYe4w/tz0VkqVej/alkB5hTH97jN2hoyKGBLf g5uhqZp+O1O9Fd49rLHtuLuswDpUzdDL+Tt3dzJuRygIvJ4YB5cx6LYCzGtXf/UTAfI0 IB3vJLZVgWdY4BJaQAv21EZ45ApU54ROiuoCD4fG4QerrboZw98sknqGyl5WisHcS6BK FepSB79Xkc56os7ioO8B4BgEAPCC309cxF5oQlfT4VF6Hmkz1vUqCUWClGedOs22AJr0 n2WWqhfT/G39dhqCet9Gu1I+c0E5vL7i+9IzFGTmYJaIwuamf/OCfz2fLiT6LBDnsgk6 6O3A== X-Gm-Message-State: ALoCoQm6Wz7OSRt5gVhLAi6SdGil3tD5BANVNEXoLGZ+AVvReSov6RueJDFul9AD96jIG5kxm0CS5SToNzgQ4fLrmyZi8uQWR7BoWAghpf//bz+1UfQlLaPZYHWyRUbBacz6hepa4UYe MIME-Version: 1.0 X-Received: by 10.52.113.1 with SMTP id iu1mr101284vdb.35.1400134164611; Wed, 14 May 2014 23:09:24 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 14 May 2014 23:09:24 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 May 2014 10:09:24 +0400 Message-ID: To: Pierre Joye Cc: PHP internals Content-Type: multipart/alternative; boundary=bcaec547c623851c2904f96a235b Subject: Re: [PHP-DEV] [rfc] 64bit usage, actual memory usage using real life apps From: dmitry@zend.com (Dmitry Stogov) --bcaec547c623851c2904f96a235b Content-Type: text/plain; charset=UTF-8 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". > 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. The relative memory consumption increase on phpng is going to be more significant. Thanks. Dmitry. > > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --bcaec547c623851c2904f96a235b--