You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Paul <yd...@yahoo.com> on 2000/12/06 21:42:29 UTC

shared mem [was: mod_perl advocacy project resurrection]

--- Jim Woodgate <wo...@realtime.net> wrote:
[...]
> 2) Sharing information between the processes.  There's lots of
> different ways to do it, but none really jumps out as an end-all
> solution.

Is there no Apache::SharedMemory (or some such)?
If not, does anyone think it would be worth the time for someone (like
me) to sit down and write it?  (Couldn't it be done?)

The parent process could declare a shared memory segment at boot time.
Each child's init could spawn a shared memory interface object.
Wouldn't that allow for some resource pooling to be cleaner?
How would that interact with per-child namespaces (if at all)?

Is there a reasonably safe and useful way for one process to open a
resource (like a DBM or database handle) and then expose it to another
process through a shared memory segment?

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Re: shared mem [was: mod_perl advocacy project resurrection]

Posted by "G.W. Haywood" <ge...@www.jubileegroup.co.uk>.
Hi Paul,

On Wed, 6 Dec 2000, Paul wrote:

> Is there no Apache::SharedMemory (or some such)?  If not, does
> anyone think it would be worth the time for someone (like me) to sit
> down and write it?  (Couldn't it be done?)

There be dragons.

73,
Ged.



Re: shared mem [was: mod_perl advocacy project resurrection]

Posted by John Siracusa <si...@mindspring.com>.
On 12/6/00 3:42 PM, Paul wrote:
> The parent process could declare a shared memory segment at boot time.
> Each child's init could spawn a shared memory interface object.
> Wouldn't that allow for some resource pooling to be cleaner?
> How would that interact with per-child namespaces (if at all)?

IPC::SharedCache and friends make this pretty simple.

-John