Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD5809907 for ; Tue, 14 Feb 2012 02:48:40 +0000 (UTC) Received: (qmail 67273 invoked by uid 500); 14 Feb 2012 02:48:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 67047 invoked by uid 500); 14 Feb 2012 02:48:31 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 67039 invoked by uid 99); 14 Feb 2012 02:48:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 02:48:29 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of noel.butler@ausics.net designates 27.33.160.23 as permitted sender) Received: from [27.33.160.23] (HELO valhalla.ausics.net) (27.33.160.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 02:48:22 +0000 Received: from [10.10.0.145] (tardis.ausics.net [10.10.0.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by valhalla.ausics.net (Postfix) with ESMTPSA id CE529C0E8A5 for ; Tue, 14 Feb 2012 12:48:00 +1000 (EST) From: Noel Butler To: users@httpd.apache.org In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ED2EbUzpWo+3/kDtBZ3V" Date: Tue, 14 Feb 2012 12:48:00 +1000 Message-ID: <1329187680.8464.10.camel@tardis> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] vhosts conf file efficiency --=-ED2EbUzpWo+3/kDtBZ3V Content-Type: multipart/alternative; boundary="=-A/pcHD4uG2NwYTCjSL02" --=-A/pcHD4uG2NwYTCjSL02 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable On Tue, 2012-02-14 at 12:21 +1000, Nick Edwards wrote: > On 2/12/12, Steve Swift wrote: > > I don't think it would make a significant difference if you had a singl= e > > file with 2000 vhosts, or 2000 files with one vhost each. > > >=20 > I think you're right, I added half a dozen test domains and checked Remember, openfile 1 readfile 1 closefile 1 ... openfile 2000 readfile 2000 closefile 2000 So its going to open, read and close 2000 files, rather than open, read and close one file, that may or may not be noticeable at startup/reloads, if I was a betting man, I'd say noticeable. --=-A/pcHD4uG2NwYTCjSL02 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tue, 2012-02-14 at 12:21 +1000, Nick Edwards wrote:
On 2/12/12, Steve Swift <Swifty=
@swiftys.org.uk> wrote:
> I don't think it would make a significant difference if you had a sing=
le
> file with 2000 vhosts, or 2000 files with one vhost each.
>

I think you're right, I added half a dozen test domains and checked

Remember,

openfile 1
readfile 1
closefile 1
   ...
openfile 2000
readfile 2000
closefile 2000

So its going to open, read and close 2000 files, rather than open, read and= close one file, that may or may not be noticeable at startup/reloads, if I= was a betting man, I'd say noticeable.



--=-A/pcHD4uG2NwYTCjSL02-- --=-ED2EbUzpWo+3/kDtBZ3V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAABAgAGBQJPOctgAAoJECg/hgl/0DbHkQAH/1UqazCThrs65v9roVu6ppwY MLjVTSrI+P8lqDUyPaDi3TnlUanpheS2dfh+xTDzZx1wVlkrDve3YqaTcCkIFgCq s2j+VSJnM0feP6wWxTaQ6ZLH89pOcv6TQA+Vb13WiyAj0ZiMM+tQEbAR3lmSaS2q txRG8dO/ta5sMW2fTInJkDBY6MnOFEUFABQjAifcf3nlcfv9D1+Ltm8s99/L80/k 04wovZln8sudmby7FYP1xLOd+rAKCiAd3EcXPvs9QweLCtiHBfgMqIIr3gapEbW0 3VT4LEt/nhl5V4MJAALKRttB1wi8taIbC5LH/u6HdD0XxwV6J1VCv/3SPizZ6qI= =w16U -----END PGP SIGNATURE----- --=-ED2EbUzpWo+3/kDtBZ3V--