From owner-svn-src-head@FreeBSD.ORG Thu Nov 6 15:44:25 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF54B106567A; Thu, 6 Nov 2008 15:44:25 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id AD8A28FC1C; Thu, 6 Nov 2008 15:44:24 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so512365fgb.35 for ; Thu, 06 Nov 2008 07:44:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=OdAy+fK41DtNzOvjmwySWcRWZ1YBvjJcPxvxO3e3rZY=; b=d0pr5MoZJreD3tj1PbX7ggX7x7Q991bZ6XKQjWsttRxJ2/I5gAx9YYo2kH2XR55aT2 67vtC5ELMaCBmElt+DaWzfY/VMBwSXyCLkMA6zsELFAhXp489wFczfqfFtI5M6qh98OF Tid0GgESsuxwaQ5GQ0bxicSk8lh9roeAWQxbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iT3qc5peuXlNKb4WI8i72ZGCsv9rot660PcvwH++oVf6T9L4XTm8shyuT6kIT2hTwd XYiH8ZxpTb33nO38PQWqiwXOIQZMqEKGg/2nbY+HAHDzEwFlLYUN7I2tqk2zKaT24moC iFwhd7MOhdax+UIvHEuKJDXpPDtqAVYrKjaCs= Received: by 10.180.233.15 with SMTP id f15mr702213bkh.188.1225986263037; Thu, 06 Nov 2008 07:44:23 -0800 (PST) Received: by 10.181.225.15 with HTTP; Thu, 6 Nov 2008 07:44:22 -0800 (PST) Message-ID: <9bbcef730811060744p6bb85393h297ac247d98a0d5d@mail.gmail.com> Date: Thu, 6 Nov 2008 16:44:23 +0100 From: "Ivan Voras" To: "Peter Wemm" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811041904.mA4J41dL005103@svn.freebsd.org> <9bbcef730811041422x5f1e7bfco45380390c64b3b1c@mail.gmail.com> <200811041750.08355.jhb@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, John Baldwin Subject: Re: svn commit: r184652 - in head/sys: dev/hwpmc fs/procfs kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 15:44:25 -0000 2008/11/6 Peter Wemm : > On Tue, Nov 4, 2008 at 2:50 PM, John Baldwin wrote: > Hmm. Would it make sense to provide a helper syscall specifically for > php to use for this? Without having looked at the php code, it sounds > like it might be helpful to have a syscall that returns the path and > an array of stat structs for each path component. Or is php only > doing this because of compatability with non-atomic getcwd() > implementations? Does php even need to do it? Here's a discussion on the performance problem: http://lists.freebsd.org/pipermail/freebsd-performance/2008-January/003096.html I remember, but can't find the reference now, that the problem became visible because PHP introduced realpath() checking for include files in a minor release (like 5.1.6 or something like that) to work around a security problem. This is when users saw noticeable drops in performance (and I don't think it solved their security problem :) ).