svn commit: r184652 - in head/sys: dev/hwpmc fs/procfs kern

Ivan Voras ivoras at gmail.com
Thu Nov 6 07:44:25 PST 2008


2008/11/6 Peter Wemm <peter at wemm.org>:
> On Tue, Nov 4, 2008 at 2:50 PM, John Baldwin <jhb at freebsd.org> 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 :) ).


More information about the svn-src-head mailing list