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 Mon, 2012-02-13 at 22:10 -0500, Sean Conner wrote:
> > > 
> > > 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.
> 
> Bored, so I tried it, only on a lightly used server (408 hosts) wrote
> quick 'n dirty perl  to split them into individuals and into a test dir
> 
> firstly in normal state....
> 
> time ./rc.httpd start
> Starting Apache... Done.
> 
> real	0m0.336s
> user	0m0.252s
> sys	0m0.040s
> 
> Now edited httpd.conf to exclude vhosts.conf but include
> conf/test/*.conf
> 
> time ./rc.httpd start
> Starting Apache... Done.
> 
> real	0m1.087s
> user	0m0.284s
> sys	0m0.040s

  Interesting.  Both user and sys time is similar, only the real time is
different, and that, I would attribute to the system having to read in the
files off the disk (a cold file cache).  

  -spc (Hmm ... looks like I lost that bet 8-)



---------------------------------------------------------------------
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