Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: thread-safe mmap module ?

by kennethk (Abbot)
on Feb 21, 2009 at 22:49 UTC ( [id://745572]=note: print w/replies, xml ) Need Help??


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

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?

Replies are listed 'Best First'.
Re^4: thread-safe mmap module ?
by jdd (Acolyte) on Feb 21, 2009 at 22:55 UTC
    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.

        Yep - googling on it I see that Cache:Mmap might work, and if not IPC::Mmap::Win32 name suggests it will -; I'll give it a try asap, crossing fingers about performance.

        Thanks to all of you !

Log In?
Username:
Password:

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

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

    No recent polls found