[OT] RE: Getting a Cache::SharedMemoryCache started

2001-03-28 Thread Matt
Hi all, I eventually found the problem with getting shm to work. I had the Openwall Linux kernel patch enabled with the "Destroy shared memory segments not in use" option set, which most Perl IPC functions seem to not like. Apache and PostgreSQL seem to work fine with this patch in place, however

RE: Getting a Cache::SharedMemoryCache started

2001-03-28 Thread Rob Bloodgood
Thanks for the pointers, unfortunately I've got a problem with the Shared > cache in that I need IPC::ShareLite, no problem, except it won't test ok, > I get: > > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib > -I/usr/lib/perl5/i386-linux -I/usr/lib/perl5 test.pl > 1..8 > ok 1 > ok 2 > IP

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread Perrin Harkins
On Tue, 27 Mar 2001, DeWitt Clinton wrote: > Now, this implies that a module, such as the Cache::MemoryCache, which > currently shares data for a particular process by creating a global > hash, would only share data for one instance of the Perl interpreter > associated with that thread. If I want

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread DeWitt Clinton
On Tue, Mar 27, 2001 at 11:57:26PM +0100, Matt wrote: > Thanks for the pointers, unfortunately I've got a problem with the > Shared cache in that I need IPC::ShareLite, no problem, except it > won't test ok, I'm not sure what the IPC::ShareLite problem is, maybe Maurice Aubrey does... In any ca

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread Matt
Thanks for the pointers, unfortunately I've got a problem with the Shared cache in that I need IPC::ShareLite, no problem, except it won't test ok, I get: PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/i386-linux -I/usr/lib/perl5 test.pl 1..8 ok 1 ok 2 IPC::ShareLite sto

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread DeWitt Clinton
On Tue, Mar 27, 2001 at 02:38:34PM -0800, Perrin Harkins wrote: > On Tue, 27 Mar 2001, DeWitt Clinton wrote: > > > I imagine that nearly most Perl libraries are not thread safe, of > > course. But code that will be used in mod_perl environments needs > > to be, right? > > You can read all about

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread Perrin Harkins
On Tue, 27 Mar 2001, DeWitt Clinton wrote: > Which reminds me of something. These cache objects are not currently > thread safe. When should I start expecting multi-threaded > apache/mod_perl to become mainstream enough to warrant an overhaul of > the code? I imagine that nearly most Perl libra

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread DeWitt Clinton
On Tue, Mar 27, 2001 at 05:19:15PM -0500, Pierre Phaneuf wrote: > DeWitt Clinton wrote: > > > The other question is whether or not to share the cache instance > > itself globally. Technically, this is up to you. Personally I > > wouldn't bother, considering the overhead of instantiating the >

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread Pierre Phaneuf
DeWitt Clinton wrote: > The other question is whether or not to share the cache instance > itself globally. Technically, this is up to you. Personally I > wouldn't bother, considering the overhead of instantiating the cache > is so low that I would rather keep it local to the handler (as I did

Re: Getting a Cache::SharedMemoryCache started

2001-03-27 Thread DeWitt Clinton
On Tue, Mar 27, 2001 at 09:50:33PM +0100, Matt wrote: > I want to cache some values in my handlers so they don't keep having > to look stuff up, and so I figured a Cache::SharedMemoryCache would > be the way to go. It all depends on what you want to cache and why. If you wanted to save a trip t