Re: shared memory

[prev] [thread] [next] [Date index for 2005/03/15]

From: =?ISO-8859-1?Q?Andr=E9_Warnier?=
Subject: Re: shared memory
Date: 23:26 on 15 Mar 2005
Perrin Harkins wrote:
> On Tue, 2005-03-15 at 23:26 +0100, André Warnier wrote:
> 
>>Do I get the feeling this is getting a bit off-topic ? :-)
> 
> 
> That's because we believe we answered your question and are now talking
> about interesting side-topics.
> 
> 
>>a) is it possible/easy to share this data between a number of 
>>Apache2/mod_perl2 request handlers ? If yes, how ?
> 
> 
> BerkeleyDB, MySQL, or SQLite3, but I don't think BDB works in Win32.  I
> don't think any of the shared memory modules work on Win32 either, and
> they tend to be slower than MySQL anyway, for various reasons.
> 
Thank you.  Now you did indeed.
Pardon my insistence.  I undertand I am the one looking for help, and 
that you are kind enough to offer it, and I am grateful.

I have previously gone though a lot of perl and mod_perl documentation, 
and perl module descriptions, and I never seemed to find a clear answer 
about wether yes or no it was possible to share in-memory data between 2 
perl processes (or threads) running under Apache.
There are lots of discussions and explanations about children and 
threads and forking and copy-on-write and SV's and so on, but nothing 
very clear for a simple mind like mine.
I understand from all that information, that it is not an easy thing to 
do, specially under OS'es as different as Unix and Windows, with perl 
not really separating data and code and so on.

I guess what you answer above means "no, there isn't".

What I am wondering about is this : such a possibility of sharing a 
memory area seems like something rather desirable under some 
circumstances.  At least I have seen several messages on that very 
topic, in this list and other places.
On the other hand, mod_perl seems to have some deep interactions with 
the innards of the Apache server, for example direct manipulation of the 
"bucket brigades".  How come no-one has come up yet with some scheme to 
"hijack" one of these bucket brigades (or some other internal Apache 
memory area) to provide such a capability ?

Also, for instance, the DBI module and it's companion Apache::DBI 
provide persistent connections to databases. And to my knowledge, they 
are available under Unix as well as Windows.  For doing this, there must 
be some form of memory sharing at work, isn't it so ?

André Warnier

(message missing)

shared memory
=?ISO-8859-1?Q?Andr=E9_Warnier?= 16:35 on 15 Mar 2005

Re: shared memory
Jonathan Vanasco 16:37 on 15 Mar 2005

Re: shared memory
=?ISO-8859-1?Q?Andr=E9_Warnier?= 17:07 on 15 Mar 2005

Re: shared memory
=?ISO-8859-1?Q?Andr=E9_Warnier?= 22:53 on 15 Mar 2005

Re: shared memory
Martin Moss 17:47 on 15 Mar 2005

Re: shared memory
Perrin Harkins 18:04 on 15 Mar 2005

Re: shared memory
Jonathan Vanasco 19:11 on 15 Mar 2005

Re: shared memory
Perrin Harkins 19:48 on 15 Mar 2005

Re: shared memory
Dan Sully 19:53 on 15 Mar 2005

Re: shared memory
jonathan vanasco 00:30 on 17 Mar 2005

Re: shared memory
Jonathan Vanasco 20:05 on 15 Mar 2005

Re: shared memory
Perrin Harkins 20:14 on 15 Mar 2005

Re: shared memory
=?ISO-8859-1?Q?Andr=E9_Warnier?= 22:26 on 15 Mar 2005

Re: shared memory
Perrin Harkins 22:31 on 15 Mar 2005

Re: shared memory
=?ISO-8859-1?Q?Andr=E9_Warnier?= 23:26 on 15 Mar 2005

Re: shared memory
Jonathan Vanasco 23:40 on 15 Mar 2005

Re: shared memory
Eric Wilhelm 23:50 on 15 Mar 2005

Re: shared memory
Perrin Harkins 00:29 on 16 Mar 2005

Re: shared memory
Scott Gifford 03:29 on 16 Mar 2005

Re: shared memory
William McKee 14:36 on 18 Mar 2005

Re: shared memory
Perrin Harkins 00:30 on 16 Mar 2005

Re: shared memory
jonathan vanasco 00:40 on 16 Mar 2005

Re: shared memory
Perrin Harkins 00:50 on 16 Mar 2005

Re: shared memory
Ofer Nave 01:20 on 16 Mar 2005

Re: shared memory
jonathan vanasco 01:56 on 16 Mar 2005

Re: shared memory
Perrin Harkins 01:06 on 17 Mar 2005

Generated at 16:59 on 18 Mar 2005 by mariachi v0.52