httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Conner <...@conman.org>
Subject Re: [users@httpd] vhosts conf file efficiency
Date Tue, 14 Feb 2012 03:10:13 GMT
It was thus said that the Great Noel Butler once stated:
> 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 single
> > > 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.

  Nope.  I just ran a program [1] that opened and read 25,018 files in 2.5
seconds [2].  I'd bet unnoticeable.

  -spc (But given that Apache starts/restarts should be rare anyway ... )

[1]	It effectively runs the Unix command "file" over a large number of
	files.

[2]	1G RAM, 2.6GHz Pentium

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message