You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by David Willams <da...@gmail.com> on 2007/09/11 02:27:30 UTC

Child processes/cache question

Condition: I'm pre-load sharable data at apache start, but I also have
different data that is caching itself within child processes.
Goal: to pre-cache within each process, the data that cannot be cached
within the shared space.

Not sure if I'm asking this correctly, but is there a method by which child
processes may do their own start-up routine (i.e. pre-cache) at fork time
from the parent? Now, each process basically does this on first use.

Re: Child processes/cache question

Posted by David Willams <da...@gmail.com>.
Excellent.  That's it.

Thanks!

On 9/10/07, William A. Rowe, Jr. <wr...@rowe-clan.net> wrote:
>
> David Willams wrote:
> > Condition: I'm pre-load sharable data at apache start, but I also have
> > different data that is caching itself within child processes.
> > Goal: to pre-cache within each process, the data that cannot be cached
> > within the shared space.
> >
> > Not sure if I'm asking this correctly, but is there a method by which
> > child processes may do their own start-up routine ( i.e. pre-cache) at
> > fork time from the parent? Now, each process basically does this on
> > first use.
>
> child_init hook?
>

Re: Child processes/cache question

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
David Willams wrote:
> Condition: I'm pre-load sharable data at apache start, but I also have
> different data that is caching itself within child processes. 
> Goal: to pre-cache within each process, the data that cannot be cached
> within the shared space.
> 
> Not sure if I'm asking this correctly, but is there a method by which
> child processes may do their own start-up routine ( i.e. pre-cache) at
> fork time from the parent? Now, each process basically does this on
> first use.

child_init hook?