Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  Slow startup with big docroot

Guest
Posted: Tue Jul 27, 2010 3:57 pm Reply with quote
Guest
Hi,

my yawst have a lot of files in doc-root (600000 files), and the startup take several minutes. It also takes alot of CPU-time.

Thats my conf:

php_exe_path = /usr/bin/php-cgi
max_num_cached_files = 1
<server localhost>
port = 9876
listen = 0.0.0.0
docroot = /home/christian/dev/hunter_templates
dir_listings = true
allowed_scripts = yaws php cgi
</server>


Any ideas how to speed up the startup? I think yaws try to index all files, for me that's not necassary.

Best regards

christian



--


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
Guest
Posted: Tue Jul 27, 2010 6:10 pm Reply with quote
Guest
On Tuesday, July 27, 2010, Christian Hennig <caraboides@googlemail.com> wrote:
> Hi,
>
> my yawst have a lot of files in doc-root (600000 files), and the startup take several minutes. It also takes
Guest
Posted: Wed Jul 28, 2010 10:43 pm Reply with quote
Guest
On 07/27/2010 08:09 PM, Steve Vinoski wrote:
>


>>
>> Any ideas how to speed up the startup? I think yaws try to index all files, for me that's not necassary.
>
> I think I know what this is -- there's a filelib:fold looking for auth
> files, and it looks recursively for these files in the docroot. I'll
> have to dig around a bit to see if there's a way to avoid this or do
> it more efficiently.
>

I'd say that 600000 files in the docroot is a lot !! And yes, Steve is right, it's
the list_dir() in the docroot searching for auth files.
My recommendation is to reorganize your files, most file systems handle 600000 file
dirs pretty badly. Yes it works, but it's slow,

OTOH, it could be an idea to disable the auth file lookup entirely, no support
for that though.

/klacke

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
wuji
Posted: Fri Aug 24, 2012 8:45 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
a small number of cases -- just 11 -- the the cheap authentic air jordans the parents insisted on continuing intensive care while they prayed
divine intervention and a complete cure, even after being told told [h3]cheap real jordans[/h3] told there was no hope for recovery.Overriding Religious BeliefsSuch scenarios
up all sorts of ethical and legal dilemmas for medical medical cheap Ralph Lauren medical caregivers who must try to balance a parent's wishes
what they think is best for their patient. Caplan says says [h4]knockoff designer *beep*[/h4] says in most cases, they ultimately advocate for the patient."You
to take beliefs into account but you can't let any any [h2]cheap replica *beep*[/h2] any parent for any reason hijack what you as a
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum