Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11913 invoked from network); 14 Feb 2009 22:13:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2009 22:13:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=rmie@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rmie@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 213.165.64.20 as permitted sender) X-PHP-List-Original-Sender: rmie@gmx.de X-Host-Fingerprint: 213.165.64.20 mail.gmx.net Received: from [213.165.64.20] ([213.165.64.20:38067] helo=mail.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/E5-08422-E0247994 for ; Sat, 14 Feb 2009 17:13:35 -0500 Received: (qmail invoked by alias); 14 Feb 2009 22:13:31 -0000 Received: from p4FF01577.dip0.t-ipconnect.de (EHLO [192.168.1.100]) [79.240.21.119] by mail.gmx.net (mp065) with SMTP; 14 Feb 2009 23:13:31 +0100 X-Authenticated: #1146668 X-Provags-ID: V01U2FsdGVkX1/UWoYwpu3Ugl32UlqcI59g1G0uVQpu+m1YX5Sc9Y yPF1tRWisMK3dG To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Date: Sat, 14 Feb 2009 23:13:29 +0100 Message-ID: <1234649609.25689.26.camel@testbox> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-5.fc8) Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 Subject: open_basedir performance issue, realpathcache vs. statcache From: rmie@gmx.de (Roland Mieslinger) Hello, we're managing a shared hosting environment with about 600 virtual servers. All content for the websites is stored on a NFS share. We're suffering from a huge amount of lstat calls, and identified open_basedir as the reason for that. strace shows that each call needs 40µs in average, this is due to NFS. A lot of questions arises from that, but some answers are still missing. Maybe I can get them here. Did open_basedir rely on realpathcache? I haven't found a definitive answer to that. We have changed realpath cache size, without any impact. So I assume the answer is no. >From what I understand realpathcache is different from statcache. So using clearstatcache should not flush the realpathcache. Am I correct? Thanks for you help Roland