httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <>
Subject Re: [PATCH] mod_disk_cache: speed up read_table
Date Thu, 18 Aug 2005 16:28:38 GMT
On Thu, Aug 18, 2005 at 12:11:56PM -0400, Brian Akins wrote:
> >Yep, but there are definite speed-up's to be had. I'm going to
> >canibalise your patch and try some of the above anyway.
> Cool. I'd be willing to help.

I'll be putting on-line all of my TODO's and patches-in-progress
shortly, I have some reading and non-code writing to do first, but then
back to being more productive ;-)

> On a side note, maybe interesting: what if the whole file was just 
> mmaped? (use '\0' for delimiter in tables).  This would allow every 
> worker referencing an object to reference the same memory. 

Do you mean as in using MAP_SHARED? I could see that being a
race-condition nightmare. For example cache_info_t's pointers to the
header tables would have to be local to the process, but the memory for
the cache_info_t itself wouldn't be. Definitely to be avoided!

Regular MMap, as long as it honoured EnableMMap would be fine though.

Colm MacCárthaigh                        Public Key:

View raw message