Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38766 invoked from network); 7 May 2013 13:14:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2013 13:14:05 -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.220.181 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.181 mail-vc0-f181.google.com Received: from [209.85.220.181] ([209.85.220.181:60920] helo=mail-vc0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/21-25332-C1EF8815 for ; Tue, 07 May 2013 09:14:04 -0400 Received: by mail-vc0-f181.google.com with SMTP id hr11so445600vcb.26 for ; Tue, 07 May 2013 06:14:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=wMFc7QLBfAU5jjub+I2VHg+RKbBoJChxAmchbdvXswQ=; b=ZyiwEdEIF9cTOdfRemmgGTwEOdKoxCeL+XFbimwZ0Yz0NvZAwLojabVMNn6YuDFZ1G n9wz1u7x0hMqbB+azwpVIMbYCrxBHPH3F+9cyRsT+RI1cXtBcwU4hZkQcK8CxnVSngPA 0iCUcXK7T1RO4ksJqm0/dtC5UpyMrpKLaDu52liEVS6HpLJApbNhA2KgEx3nNlqXr/Ch envRmzZ+PLvjMEwbIDo3LiQyuuRvN3yQLQBvghc2YfYqUZrb/phxS3q6VTx1fb1uXJDK PXkB4JOuUKlkrt6UGs4gfaw5ff8QDNkPo9dOEmaqdP6Hn6VW8BdOTS04tfkuVcVcHVL5 Fw/w== MIME-Version: 1.0 X-Received: by 10.220.244.137 with SMTP id lq9mr1166852vcb.13.1367932441896; Tue, 07 May 2013 06:14:01 -0700 (PDT) Received: by 10.52.185.102 with HTTP; Tue, 7 May 2013 06:14:01 -0700 (PDT) In-Reply-To: <51850D2B.80902@ellisons.org.uk> References: <51850D2B.80902@ellisons.org.uk> Date: Tue, 7 May 2013 17:14:01 +0400 Message-ID: To: Terry Ellison Cc: pecl-dev-@lists.php.net, "internals@lists.php.net" , Andi Gutmans , Stanislav Malyshev , Zeev Suraski , Brendon Colby , Christopher Jones , Marten Lehmann Content-Type: multipart/alternative; boundary=089e0115f69846bdec04dc209714 X-Gm-Message-State: ALoCoQkgJReUzvVTZB2kAvFsoB9L/CUIly5xpbMcNz5i7cBdgK7yqf3u/8tsb7DcLSvzQa2YMw+hFaF6gopydjE/bNhNIjNp3DCVpHoGG9oIhWWytaX3LQLXh4rwQFo1+pfGukTSmiYL Subject: Re: Multi-level Caching Fork of OPcache -- update From: dmitry@zend.com (Dmitry Stogov) --089e0115f69846bdec04dc209714 Content-Type: text/plain; charset=UTF-8 Hi Terry, I don't have time right now (on this week), but I'll definitely take a look into your patch later. Thanks. Dmitry. On Sat, May 4, 2013 at 5:29 PM, Terry Ellison wrote: > Please treat this email by way of request for feedback from the OPcache > developers and anyone interested in influencing my next steps on my > https://github.com/TerryE/**opcache fork of OPcache and specifically on the dev-filecache branch. The most > appropriate channel is probably https://github.com/TerryE/**opcache/issues-- unless you think that the comments have wider applicability for either > the PECL or DEV communities. > > My ultimate aim is to take this to a point where the OPcache developers > feel sufficiently comfortable to consider merging a future version back > into OPcache. I have added some detailed project wiki pages documenting my > scope and progress and in particular on https://github.com/TerryE/** > opcache/wiki/MLC-OPcache-**detailsand a brief quote from the page: > > An indication of the potential performance benefits of OPcache CLI mode >> can be seen from a simple benchmark based on 100 executions of the >> MediaWiki runJobs.php maintenance batch script. This compiles some 44 PHP >> sources, comprising 45K lines and 1,312 Kbytes. The cached version reads a >> single runJobs.cache file of 1,013 Kbytes. >> >> Time in mSec Average Stdev >> Uncached Execution 179 7 >> Cached Execution 77 7 >> (Image Load Overhead) 18 3 >> > > In other words for this script, the MLC cache is delivering an approximate > 60% runtime saving. Of course this is only a point test, and benefits will > vary -- though I hope that switching to LZ4 compression will improve these > figures further. But even this one point challenges what seems to be a > core PHP development dogma: "there's no point in using a file cache, > because it makes no material performance difference". Even this build > *does* deliver material benefits , and I suggest that there is merit in > moving to including MLC cached modes to accelerate CLI and GCI SAPI modes > using this or a similar approach. > > From an internals -- rather than PECL -- viewpoint what this would mean is > that non-cached incremental compile-and-go execution modes would now be the > exception than the norm -- largely negating the disadvantages of any > compile-intensive optimization options. > > So thank-you in anticipation for your feedback. I will do my utmost to > respond constructively to all comments. :-) > Regards Terry Ellison > > PS. Apologies in advance: I am "up country" at my cottage on an Island > in the north Aegean with the nearest Wifi some walk away, so my Internet > access is limited at the moment, and I might take some time to respond. > > --089e0115f69846bdec04dc209714--