Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48924 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57840 invoked from network); 21 Jun 2010 16:35:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2010 16:35:28 -0000 Authentication-Results: pb1.pair.com header.from=v.damore@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=v.damore@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: v.damore@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:54769] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/0A-04556-FC49F1C4 for ; Mon, 21 Jun 2010 12:35:27 -0400 Received: by fxm5 with SMTP id 5so2310710fxm.29 for ; Mon, 21 Jun 2010 09:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=fCo3bhcGiCSmmwCYfiI2NKbmtF7rjSXYVgVgidbewJ4=; b=cZh0RA9lExHs93PEwvquLnHd8JBoY5TK00oQ5H3qT/5BbLfuSGzl3SRQq0NHlw1WMY LYxMvKqS+zFOyHYgIjF8wyddPH2sqfhgtYjqgSt8r8Wh/w5RsXzpsWiCifYkzfIQnxOj yBwNC3tSRxog6AEvtXNuo4NiUgXcZ48c6L/wQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=lRurLEObyVskXOxB341vO+HI5ytHZ64zc8tYUQMipNxV76NbvMoraeT1tbva47f3Cc bPW/JJ5xQL/B/gJvhw3YOwQsEwcG6V4lM83/NeMPkHU0yx5axSKpkznfMV0tuID//tDx rKlr7SFr53Q7YY1rTW86K3HPo9Wjl++Spuwak= Received: by 10.239.189.147 with SMTP id t19mr350265hbh.64.1277138123212; Mon, 21 Jun 2010 09:35:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.189.6 with HTTP; Mon, 21 Jun 2010 09:35:03 -0700 (PDT) In-Reply-To: <4C1E1986.7030802@lerdorf.com> References: <4C1E1986.7030802@lerdorf.com> Date: Mon, 21 Jun 2010 18:35:03 +0200 Message-ID: To: Rasmus Lerdorf Cc: Internals Content-Type: multipart/alternative; boundary=001485f428a829c80c04898ce403 Subject: Re: [PHP-DEV] Performance problem with php From: v.damore@gmail.com ("Vincenzo D'Amore") --001485f428a829c80c04898ce403 Content-Type: text/plain; charset=UTF-8 Thanks Rasmus, we are using wordpress. Looking at code: find . -type f -exec grep realpath {} \; I see a lot of: if ( function_exists('realpath') ) $path = realpath($path); if ( function_exists('realpath') ) $path = realpath($path); if ( function_exists('realpath') ) $path = realpath($path); if ( realpath($path) == $path ) if ( !is_null($dest_path) and $_dest_path = realpath($dest_path) ) What do you think if I disable such function? Best regards, Vincenzo On Sun, Jun 20, 2010 at 3:37 PM, Rasmus Lerdorf wrote: > On 6/19/10 11:49 PM, Vincenzo D'Amore wrote: > > Could anybody explain me why I have this behavior and if it is > attributable > > to a misconfiguration of php? > > This doesn't look like a PHP misconfiguration. It looks more like an > application-level issue. Do a grep for "realpath" in your application > code. A single call to realpath() would cause that tree of stat calls > you see. Also, you might be overflowing your realpath cache. PHP 5.2 > is not using the cache very efficiently. This is fixed in 5.3. But try > increasing your cache ttl and the size as well. eg. > > realpath_cache_size = 256k > realpath_cache_ttl = 7200 > > -Rasmus > -- Vincenzo D'Amore email: v.damore@gmail.com msn: freedev@hotmail.com skype: free.dev mobile: +39 349 8513251 --001485f428a829c80c04898ce403--