Click here to get back home

Shared memory for data structures

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Shared memory for data structures Yash 09-08-2004
Posted by Yash on September 8, 2004, 11:13 am
Please log in for more thread options
In our Active Perl 5.8 script on Windows 2000, we cache a number of
database tables in memory in hashes, and use them for lookups to be
performed on records being read from a number of files. To make use of
a multiprocessor environment, we spawn multiple processes using fork.
This causes multiple copies of the cache being maintained. We have to
update the cache during the processing in certain cases and hence
would like to keep a single copy so that all processes see the same
lookup data.
Is there a way to let Perl keep some of the hash tables in shared
memory? Can somebody provide relevant pointers/suggestions?

Thanks
Yash


Similar ThreadsPosted
DBD::Unify on AIX : error -59 unable to attach to shared memory. July 8, 2006, 11:24 pm
CGI::StringDB Embedding perl data structures in an HTML post. July 10, 2005, 9:13 pm
How to solve memory problems while running a script parsing huge data July 13, 2004, 1:23 pm
Comparing structures, ignoring floating point roundoff differences November 18, 2005, 11:07 am
Invalid value for shared scalar June 14, 2005, 1:57 pm
extutils::MakeMaker trying to portability build a shared lib July 9, 2007, 4:36 pm
Annoying 'Variable ... will not stay shared' messages January 20, 2008, 5:32 am
DBD::CSV problem: Execution ERROR: Cannot obtain shared lock November 15, 2004, 5:19 pm
Out of Memory error September 12, 2004, 11:51 pm
CPAN shell says "Out of memory!" December 30, 2005, 5:15 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap