So I guess that Andrew has indirectly answered your question. AOLserver is 
written in C for high performance. Probably use it when you don't want a huge 
file cached in memory, but you want to cache a huge file? Maybe someone can 
comment on the effect of a large number of smaller mmap'ed files.

It looks like the cache is virtual server wide. Does cache/mmap extend to 
other virtual servers?

Tom Jackson

On Friday 10 February 2006 17:45, Cynthia Kiser wrote:
> On Feb 9, 2006, at 3:46 PM, Andrew Piskorski wrote:
> >> When should one use mmap()?  and if you don't, what is used?
> >
> > Why does this question arise at all in an AOLserver context?
>
> Because I see it as a true/false option in the annotated
> configuration file.
>
> #
> # Fastpath serves HTML
> #
> ns_section "ns/server/${servername}/fastpath"
> ns_param   cache           true      ;# Enable cache for normal URLs
> ns_param   cachemaxentry   8192      ;# Largest file size allowable
> in cache
> ns_param   cachemaxsize    [expr 5000*1024] ;# Size of fastpath cache
> ns_param   mmap            false     ;# Use mmap() for cache
>


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to