Re: shared memory

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

From: Jonathan Vanasco
Subject: Re: shared memory
Date: 16:37 on 15 Mar 2005
look into memcached -- http://danga.com/memcached/

On Mar 15, 2005, at 11:35 AM, Andr=E9 Warnier wrote:

> Hello list.
>
> Having looked hi and lo for definite information on the subject, found=20=

> a
> lot but a bit confusing...
>
> Environment :
> Apache 2 / mod_perl 2 / perl 5.8.4+
> Windows and Unix(es)
> Apache mod_perl2 Handlers
>
> The basic question is : does there exist a platform-independent way =
for
> a bunch of apache2/mod_perl2 handlers to share information that would=20=

> be
> stored in some single shared memory area, assuming part of the
> thus-shared information changes from time to time ?
>
> More details :
> My application is a document storage and retrieval system, where
> documents are stored in some filing structure on disk, and identified=20=

> by
> an "abstract" document-id.  This document-id can be translated back to=20=

> a
> path by an algorithm based on information stored in a couple of simple
> tables.
> Most Handlers are retrieval agents serving document requests from
> browsers, for which they need access to the table information, to
> translate a URI-contained document-id, to a real path.
> The contents of the tables can change from time to time, because new
> documents are filed into the structure by ongoing filing processes.
> At the moment, the table information is stored in disk files, and each
> retrieval or filing process accesses it by flock-ing a "semaphore"=20
> file,
> reading the data, possibly updating the tables, then unlocking the
> semaphore file.
> I would like to replace this by tables held in memory and some access
> synchronisation mechanism between the various "child" or "thread"
> processes involved.
>
> At the moment, considering all the information I have found, the only
> methods that come to mind as being safe and relatively simple, would =
be
> 1) to create a separate daemon process acting as the "keeper of the
> shared tables", to whom the various Handler agents would talk via a =
TCP
> (or UDP) socket.
> or
> 2) to do this via DB or something similar (the tables are not that
> large, but I dislike this solution for various reasons)
>
> But are these really the only methods ?
>
> Thank you in advance.
> Andr=E9 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