Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2005 15:41:12 +0100
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        Vladimir Vrzic <random@beotel.yu>
Cc:        freebsd-performance@freebsd.org
Subject:   Re: Apache 2 on FreeBSD 5.3
Message-ID:  <20050204144112.GA44383@goofy.cultdeadsheep.org>
In-Reply-To: <1107510981.23035.17.camel@localhost>
References:  <1107510981.23035.17.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 04, 2005 at 10:56:21AM +0100, Vladimir Vrzic wrote:
> On a FreeBSD 5.3 web server with a very high load, I recently switched
> from Apache 1.3 and PHP 4.3 to using 2.0 with the prefork MPM and PHP 5.
> I noticed a drop in perfomance.
Did you find the bottleneck?

> What is currently the best (in terms of
> performance) choice for Apache w/ PHP on FreeBSD? Which MPM should I
> use? Does worker MPM use KSE on FreeBSD 5 and does it perform better
> than prefork? What about perchild and threadpool? Or maybe I should go
> back to Apache 1.3? Are there any sysctl or kernel tunings that I should
> use?

- Notes on MPM's: Currently, you can expect good performance with 
  prefork and worker. perchild is b0rked and threadpool is 
  experimental.
- Using apache2 with PHP is *safe* with prefork.
- worker MPM use KSE and performs well, with a custom apache2 (see 
  options for apache2 port), in some cases, worker MPM outperforms 
  prefork one.
- If you use apache2 in ports tree, you can try apr_poll() patch which 
  supports kqueue, define WITH_EXPERIMENTAL_PATCHES. 
  It's pretty stable and improves significantly apache reponsivness.

clem



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050204144112.GA44383>