Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-23 Thread Alexander Farber (EED)

On Sun, 22 Oct 2000, Steven Cotton wrote:
 What version of Perl are you using? I had some problems with make test,
 one of the tests doesn't return and I got a few munged shared memory
 segment errors, I was attempting to install under Solaris 7 and Perl
 5.6.0.

The messages about "munged shared memory" seem to be going if you change

my($tag, $ice) = unpack 'A14 A*' = $stuff;

in the file lib/IPC/Shareable.pm, sub _thaw to the:

my($tag, $ice) = unpack 'A13 A*' = $stuff;

(since the sub _freeze calls

my $stuff = 'IPC::Shareable' . $ice;   

- i.e. 13 chars). But there are further problems ("make test" hangs)...



Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-23 Thread Alexander Farber (EED)

my $stuff = 'IPC::Shareable' . $ice;   
 - i.e. 13 chars)

Oops, sorry - I can't count on mondays!



Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-22 Thread Steven Cotton

On Sat, 21 Oct 2000, Alexander Farber (EED) wrote:

 Is anybody successfully using it under Solaris or OpenBSD?
 "make test" hangs for me on these platforms and the module
 author is unreachable :-(

What version of Perl are you using? I had some problems with make test,
one of the tests doesn't return and I got a few munged shared memory
segment errors, I was attempting to install under Solaris 7 and Perl
5.6.0.

 If not IPC::Shareable, what module do you use for fast
 communication between Apache-children?

I started with IPC::SharedCache since it did most of what I wanted, but
took Sam Tregars advice and went with IPC::ShareLite (and serialised all
data myself with Storables freeze  thaw methods) and it works a dream.
One thing I couldn't seem to do was delete() tied IPC::Shareable hash
elements without getting the aforementioned "munged shared memory segment"
errors, which I can do with IPC::ShareLite.

-- 
steven




Re: IPC::Shareable (was Re: Perl module - LWP)

2000-10-21 Thread Greg Cope

"Alexander Farber (EED)" wrote:
 
 "David M. Davisson" wrote:
  Yes, it works fine.  No mods.
 
  From: "David Jourard" [EMAIL PROTECTED]
   Has anyone worked with the LWP module under mod_perl and have they found
   that it works with no modification.
 
 I would like to ask the same question about IPC::Shareable.
 
 Is anybody successfully using it under Solaris or OpenBSD?
 "make test" hangs for me on these platforms and the module
 author is unreachable :-(
 
 http://vorpal.mcs.drexel.edu/bsd-ports/helix/shared-memory.html
 doesn't seem to help on OpenBSD (increasing SHMMAXPGS up to 4096)
 
 If not IPC::Shareable, what module do you use for fast
 communication between Apache-children?

IPC::ShareLite is writen in C (and hence faster (arguably)), but it does
not serial data structures, so either Freeze / Thaw or DataDumper are
you friends here.

I've seen IPC::Sharable working ok on Solaris 2.6 but cannot offer any
guideance as to why it may not work.

Greg