Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76903 invoked from network); 19 Jun 2017 13:01:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2017 13:01:15 -0000 Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:17173] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/E5-13828-51BC7495 for ; Mon, 19 Jun 2017 09:01:11 -0400 Received: from srv-rhsoft.rhsoft.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3wrrh11BM6zXNQ for ; Mon, 19 Jun 2017 15:01:05 +0200 (CEST) To: PHP internals Message-ID: <4d54d365-9db4-f94d-f899-19aae762c596@rhsoft.net> Date: Mon, 19 Jun 2017 15:01:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: real_path_cache design From: lists@rhsoft.net ("lists@rhsoft.net") can someone take a look at https://bugs.php.net/bug.php?id=73888 real_path_cache as it is implemented now is pretty worthless when each worker maintains it's own cache and clearstatcache() can not work at all with that design because the worker which calls clearstatcache() doe sit for it's own "instance" of the cache and the others don't know anyhting about it https://github.com/php/php-src/commit/782b84c6d550ac6e695b54070bb0b409cac29f58 also does more harm than benfits because you waste 4 MB for each worker process with a still unpredictable and mostly low hitrate under growing load with a high number of workers the problem grows, low hitrate and clearstatcache() on a just changed file with no effect for any of the other worker processes