Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: thread-safe mmap module ?

by jdd (Acolyte)
on Feb 21, 2009 at 22:35 UTC ( [id://745569]=note: print w/replies, xml ) Need Help??


in reply to Re: thread-safe mmap module ?
in thread thread-safe mmap module ?

There is a concern with the win32 support and Cache::FastMmap warns:

Cache::FastMmap ./.. will not work on Windows or Win32 like environments.

and a google search on IPC::SharedCache says something similar ! Unfortunate, I guess I can fall back to a Tie::Cache or a DB backend module for win32 -; Thanks for your answer btw!

Replies are listed 'Best First'.
Re^3: thread-safe mmap module ?
by kennethk (Abbot) on Feb 21, 2009 at 22:49 UTC
    Another result that came up on that page is Cache::FastMmap::WithWin32, which "is a fork of Cache::FastMmap by Rob Mueller to include the Win32 port by Ash Berlin". Once again, never used them, but maybe this would fit your bill?
      You are hitting exactly the reason why I opened this node (smiles) - If I put Cache::FastMmap::WithWin32 in the apache startup.pl I'll hit this piece of code from the module:
      sub CLONE {
        die "Cache::FastMmap::WithWin32 does not support threads sorry";
      }
      
      Damned I said ! Can't find a win32 thread-safe mmap alternative since then.

        Let's see if I can come up with something you don't already know this time...

        The issue with support on Cache::FastMmap is likely that it uses unsupported-on-Windows C-code to handle file locking/unlocking. In the "Modules like this" section of the documentation, it references Cache::Mmap, which is a pure Perl solution, and thus should respect (to the extent possible) Win32 behaviors. A quick glance at the source suggests it should be fine with threading.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://745569]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found