Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66141 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91633 invoked from network); 21 Feb 2013 23:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2013 23:38:55 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.212.43 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.212.43 mail-vb0-f43.google.com Received: from [209.85.212.43] ([209.85.212.43:34752] helo=mail-vb0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/D5-58335-E00B6215 for ; Thu, 21 Feb 2013 18:38:54 -0500 Received: by mail-vb0-f43.google.com with SMTP id fs19so60221vbb.2 for ; Thu, 21 Feb 2013 15:38:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=9vca5QMIuNoljOen6bsx8TBubtxPie9p7Qvy/kKAG5Q=; b=YB4n0WE6NxYobt1tSZ0+yAR2PXq3wW9eWF6wpw1FzIOiuD40jso24AfwdkoSRjX1Y9 aI0iuQIvFUq2ZtQEU5rlD6MEStuMhNAHex1Hw5LWeVDpx8PsBvefyCFsgL13MXh6dHBP nItlyqigm+lNMnpgbk/fPsrgoAJqBdywtHLrBfGNNw6qyPOmdM9VG+m6uj1oUbh3oaQW Gh4/dTnMMssJmZuYXTaIwjOxwgbinUbC4z5yhfPyo2CGnkNg0CeOi55YT9fzsLETelt8 EvVKe4zQ4I68TGV+iWbAdqBp473Y7kuzqgabWTod0VNwfsZgv+gFiSzdE/I5P8sg+WJb 63Mw== X-Received: by 10.52.26.68 with SMTP id j4mr28315603vdg.116.1361489931645; Thu, 21 Feb 2013 15:38:51 -0800 (PST) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id mj8sm543941veb.8.2013.02.21.15.38.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Feb 2013 15:38:51 -0800 (PST) Message-ID: <5126B009.4090203@lerdorf.com> Date: Thu, 21 Feb 2013 15:38:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Brendon Colby CC: "internals@lists.php.net" References: <51229088.90306@lerdorf.com> <5122DA51.6090606@sugarcrm.com> <5122DBA9.2010004@lerdorf.com> <5122E00F.80409@sugarcrm.com> <5122E451.1040308@lerdorf.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmYSmhDtOmam/liqIkAnYUW6JMMSTvyO7MMwdOZNN9Lnt8N0cPqDCCW0CwcxPpiauL3gf8h Subject: Re: [PHP-DEV] PHP causing high number of NFS getattr operations? From: rasmus@lerdorf.com (Rasmus Lerdorf) On 02/21/2013 03:15 PM, Brendon Colby wrote: > NFS is so common for sharing files that saying "Wow, people are still > serving web files over NFS?" is like saying "Wow, people are still > using the ls command to list directory contents on Linux?" I think NFS > is still very widely used, even for sharing web files. This is simply not true. I do have a fair bit of experience in this field, and I don't know of any major sites that do this and I have worked with a good chunk of the largest sites out there. > I don't think the appropriate answer is "don't use NFS" because this > is ridiculous as a long term solution (NFS is common, and people are > going to use it or something similar). I think the appropriate answer > is to update PHP to use stat vs. open+fstat or doing something similar > that would be optimized for both local AND shared file systems (I > would be writing a patch instead of this email if I could). If it is of such importance to you and you are not able to do it yourself, then hire someone to do it. We may or may not get around to it, but like most things in PHP, we work on what we need ourselves and I don't think anybody here would even consider putting all their PHP files on an NFS share when performance was important. -Rasmus