Re: vhosts conf file efficiency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux