Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2007 14:27:09 +0000
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Marcio Cicero <marcio29@live.com>
Cc:        freebsd-performance@freebsd.org, freebsd-questions@freebsd.org
Subject:   RE: Optimal Apache22 configuration
Message-ID:  <1195741629.82763.37.camel@localhost>
In-Reply-To: <BAY126-W5770288081B230BC24118CB3790@phx.gbl>
References:  <BAY126-W36863ECD0AAAD381D72B60B3780@phx.gbl> <1195731553.82763.30.camel@localhost> <BAY126-W5770288081B230BC24118CB3790@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-wuTfXBJC6exdBjBPgre3
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2007-11-22 at 14:58 +0100, Marcio Cicero wrote:
> Hi Tom,
>=20
> Thanks for your input.
>=20
> As far as I can remember there were experimental support for kqueue
> polling events on apache2 which I remember as nice performance
> improvement. But unfortunately I can't find any info regarding kqueue
> for apache22.=20
>=20
> Is this possible for apache22?
>=20
> TIA
> Regards,
> Marcio
>=20
> ______________________________________________________________________
> > Subject: Re: Optimal Apache22 configuration
> > From: tevans.uk@googlemail.com
> > To: marcio29@live.com
> > CC: freebsd-performance@freebsd.org; freebsd-questions@freebsd.org
> > Date: Thu, 22 Nov 2007 11:39:12 +0000
> >=20
> > On Wed, 2007-11-21 at 19:49 +0100, Marcio Cicero wrote:
> > > Hello all,
> > >=20
> > > Tomorrow i'll start configuring an apache22 server at work and
> I've been searching what's the best configuration for apache22 on
> apache.
> > >=20
> > > Is it possible to use kqueue() support for apache22? Also, the
> best threading library around for apache22 on freebsd is libthr?
> > >=20
> > > The best mpm for this kind of environment is still worker?
> > >=20
> > > Is there any updated documentation on this matter?
> > >=20
> > > Thanks in advance.=20
> > > Regards,
> > > Marcio
> > >=20
> >=20
> > We use a pair of apache22 webservers in a round robin configuration
> at
> > work, doing proxying to app servers and serving static content for
> all
> > our websites, and they run very nicely indeed under the event MPM.
> This
> > is still marked as 'experimental' as apache, but the reason is that
> it
> > doesn't support accept filters or SSL yet (support is planned). If
> you
> > need SSL, I'd go for worker. If you need PHP, I'd go for prefork :)
> >=20
> > We wanted a pair for redundancy and failover support, and we were
> unsure
> > one server could handle the load, but load tends to hover at about
> 0.1
> > on both boxes, and they tend to 'just work', which is nice :)
> >=20
> > We use libthr, which works perfectly (as you would expect, lots of
> > apache devs run and recommend FreeBSD).
> >=20
> > Cheers
> >=20
> > Tom
> >=20
> >=20
>=20

Hi Marcio

(Please don't top post, it destroys the logical flow of the
conversation :)

Apache 2.2 by default uses epoll() or kqueue() if it is available.
Indeed, it is mandatory for the event MPM to work correctly. From the=20
event manual page: ( http://httpd.apache.org/docs/2.2/mod/event.html )

The MPM assumes that the underlying apr_pollset implementation is
reasonably threadsafe. This enables the MPM to avoid excessive high
level locking, or having to wake up the listener thread in order to send
it a keep-alive socket. This is currently only compatible with KQueue
and EPoll.

The use of kqueue is actually performed by the underlying apr
implementation, but I'm sure if it is available to apr, it will use it.

Regards

Tom


--=-wuTfXBJC6exdBjBPgre3
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBHRZG5lcRvFfyds/cRApQ0AJ44TqpW3OgIe1+RqD5td07t82WkjQCgtwkz
/GUqoRLh5ljF8R8eoB65pxk=
=SQYo
-----END PGP SIGNATURE-----

--=-wuTfXBJC6exdBjBPgre3--




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