Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68898 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16538 invoked from network); 5 Sep 2013 11:58:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2013 11:58:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.46 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.212.46 mail-vb0-f46.google.com Received: from [209.85.212.46] ([209.85.212.46:62737] helo=mail-vb0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/1D-01925-BD178225 for ; Thu, 05 Sep 2013 07:58:20 -0400 Received: by mail-vb0-f46.google.com with SMTP id p13so1032313vbe.5 for ; Thu, 05 Sep 2013 04:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=iE+JqkLxPaK2aqX5Pe0n84S9e5a0XlqcFXONDdjjRDw=; b=YhuUDgmEvCyRVuCfMdIeIdD40X7esZScPW4jEzmnIUs+iWcTKL7r2ciLlYnp057K3v nXkKIFivG+c/xgQuGCBKNOczjc9S2LlsRROkhOMrQztpnm0CrD48rboJUOXyz0Rxdoxr klOOiZ0zGcrTRrO14Fg+rida3yfDBn9arOp4sOWefy9WRn4+ioh3ahlbp2Q8sxLFc0h1 6/FcPW5WeArutipk1UFQTRCY+wbrZrqjZvwBjAqWV3I2XbfQNF3fRgHj26Pvrk0d69jX aGcR8CIFZAjSLpRy21GKVNjNMoyzbelqcYzAy5GC0BGYvqAZ9XyfMJnRWbS12WiMvSMO 0o1g== X-Received: by 10.52.103.35 with SMTP id ft3mr3610194vdb.5.1378382297043; Thu, 05 Sep 2013 04:58:17 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.73.197 with HTTP; Thu, 5 Sep 2013 04:57:36 -0700 (PDT) In-Reply-To: <075AE850888292488D400D9632DFE6E102578876@DC01.aquacool.local> References: <075AE850888292488D400D9632DFE6E102578876@DC01.aquacool.local> Date: Thu, 5 Sep 2013 13:57:36 +0200 X-Google-Sender-Auth: GXyOl5Wbm10MnLMlvVyQ7JzNCss Message-ID: To: Chris Wright Cc: Bostjan Skufca , PHP Internals List Content-Type: multipart/alternative; boundary=e89a8ff24d9b2e191304e5a1a382 Subject: Re: [PHP-DEV] realpath_cache_size description in php.ini From: jpauli@php.net (Julien Pauli) --e89a8ff24d9b2e191304e5a1a382 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Sep 5, 2013 at 12:29 PM, Chris Wright wrote: > On Thu, Sep 5, 2013 at 10:07 AM, Julien Pauli < julienpauli@gmail.com > > wrote: > > On Wed, Sep 4, 2013 at 8:28 PM, Bostjan Skufca wrote: > > > > > Hi all, > > > > > > there is no description to be found about what the value of > > > realpath_cache_size actually is. > > > > > > Is it > > > a) max number of files/dirs in the cache or > > > b) overall cache size? > > > > > > I checked php.ini samples distributed with PHP 5.5.3, and > > > documentation > > > here: > > > http://php.net/realpath-cache-size > > > > > > Can please someone here provide an answer? > > > Documentation and php.ini update would be nice too :) > > > > > > > This is a little bit complicated. > > The size represent the total number of bytes in the overall paths stored > + some > > garbage. > > So if realpath cache stores an entry of say "/tmp/foo/bar.baz", then it > will > > add 16 bytes to the realpath cache size. > > i.e, the longer the paths, the higher the cache size should be. > > The formula is located at > > http://lxr.php.net/xref/PHP_TRUNK/TSRM/tsrm_virtual_cwd.c#643 > > > > The realpath_cache_size() PHP function documentation says "Returns how > much > > memory realpath cache is using." , and this is actually true, though it > could be > > more accurate on how this memory is calculated. The realpath_cache_size > INI > > description is "Determines the size of the realpath cache to be used by > PHP. > > This value should be increased on systems where PHP opens many files, to > reflect > > the quantity of the file operations performed." It's not very specific > either, > > I admit. > > > Julien.Pauli > > I've updated the docs for the config option to reflect Julien's > explanation, and > added a link to the config option docs from the function docs > Thx Chris, I didn't know if it were worth doing it, but you added the info, so it is cool. Thank you. Julien.Pauli --e89a8ff24d9b2e191304e5a1a382--