From owner-freebsd-performance@FreeBSD.ORG Mon Jan 28 01:10:16 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F20C116A41A for ; Mon, 28 Jan 2008 01:10:16 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id C9DC713C44B for ; Mon, 28 Jan 2008 01:10:16 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 0E43F1804 for ; Mon, 28 Jan 2008 01:10:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id XOwtnDUauqBi for ; Mon, 28 Jan 2008 01:09:48 +0000 (UTC) Received: from nexus.bsdlan.org (a213-22-38-76.cpe.netcabo.pt [213.22.38.76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTP id B58301801 for ; Mon, 28 Jan 2008 01:09:47 +0000 (UTC) Message-ID: <479D2B9E.20908@barafranca.com> Date: Mon, 28 Jan 2008 01:10:54 +0000 From: Hugo Silva User-Agent: Thunderbird 2.0.0.6 (X11/20070816) MIME-Version: 1.0 To: freebsd-performance@freebsd.org References: <479B1185.8020604@quip.cz> <479C97A3.2000009@barafranca.com> <479CB5AC.9060006@barafranca.com> In-Reply-To: <479CB5AC.9060006@barafranca.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: PHP with open_basedir performance problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2008 01:10:17 -0000 Hugo Silva wrote: > Hugo Silva wrote: >> Miroslav Lachman wrote: >>> Hi all, >>> >>> I found a painful performance problem with Apache + PHP 5 when >>> open_basedir directive is enabled. >>> Application performance drops by more than 50% with open_basedir >>> enabled. >>> There is also significant disproportion between usr / sys CPU load. >>> (sys >>> is much higher than usr) >>> I do not know if this is problem on FreeBSD side or in PHP code itself. >>> This problem exists on FreeBSD 6 and 7 (maybe older versions too - I >>> did >>> not check). >>> I tested both shedulers on FreeBSD 7, no big difference (application >>> performance is little better with 4BSD). >>> Is there anyone with enough knowledge and time to look at it? >>> >>> This problem affects Mac OS X as well, but does not seem to appear >>> on Linux. >>> http://lists.apple.com/archives/macos-x-server/2006/Nov/msg00623.html >> >> I too have seen this, sys% is so MUCH higher and jumps from about 30% >> to 70% and higher all the time. In my case it's like 3% user time, >> 30-70% system time. I will try disabling open_basedir on one of the >> webservers and report back. >> >> Best regards, >> >> Hugo >> _______________________________________________ >> freebsd-performance@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-performance >> To unsubscribe, send any mail to >> "freebsd-performance-unsubscribe@freebsd.org" > > From 30-70% to 3%. What a difference! > > Hugo > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to > "freebsd-performance-unsubscribe@freebsd.org" http://bugs.php.net/bug.php?id=43946